signify-ts
    Preparing search index...

    Class Salter

    Maintains a random salt for secrets (private keys). Its .raw is random salt, .code as cipher suite for salt

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates a Salter from the provided raw salt bytes or generates a random salt if raw is not provided. Defaults to low security tier. Only supports Salt_128 salt type.

      Parameters

      • salterArgs: SalterArgs

        defines the kind of cryptographic seed to create with a variety of raw material initialization sources.

      Returns Salter

    Properties

    Hards: Map<string, number> = ...
    Sizes: Map<string, Sizage> = ...

    Accessors

    • get qb64b(): Uint8Array<ArrayBufferLike>

      Returns Uint8Array<ArrayBufferLike>

    Methods

    • Returns Signer with the private key secret derived from code the path, the user entered passcode as a salt, and the security tier sized by the CESR cryptographic seed size indicated by the code. See the example below. The Signer's public key for its .verfer is derived from its private key, the Matter code, and the transferable boolean.

      The construction of the raw hash bytes used looks like this: ( size, password, salt ) where ( code size, path, Base64Decode(passcode) ) for example, for the initial inception signing key the following parameters are used: ( 32, "signify:controller00", Base64Decode("Athisismysecretkeyseed") ) and for the initial rotation key pair the following parameters are used: ( 32, "signify:controller01", Base64Decode("Athisismysecretkeyseed") )

      Parameters

      • code: string = MtrDex.Ed25519_Seed

        derivation code indicating seed type

      • transferable: boolean = true

        whether or not the key is for a transferable or non-transferable identifier.

      • path: string = ''

        string of bytes prepended (prefixed) to the salt before stretching

      • tier: null | Tier = null

        security tier for stretching

      • temp: boolean = false

        boolean, True means use temporary, insecure tier; for testing only

      Returns Signer