signify-ts
    Preparing search index...

    Class SaltyCreator

    Deterministically creates a key pair based on combining a salt with a path stretch algorithm. The salt is randomized if not provided.

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Parameters

      • salt: undefined | string = undefined
      • tier: undefined | Tier = undefined
      • stem: undefined | string = undefined

      Returns SaltyCreator

    Properties

    salter: Salter

    The salter used to create the key pair. Contains the private key.

    Accessors

    • get stem(): string

      String prefix used to stretch the prefix, salt, and seed into the key pair. Used only for Salty key creation.

      Returns string

    Methods

    • Creates a key pair

      Parameters

      • codes: undefined | string[] = undefined

        list of derivation codes one per key pair to create

      • count: number = 1

        count of key pairs to create if codes not provided

      • code: string = MtrDex.Ed25519_Seed

        derivation code to use for count key pairs if codes not provided

      • transferable: boolean = true

        true means use transferable derivation code. Otherwise, non-transferable derivation code.

      • pidx: number = 0

        prefix index for this keypair sequence

      • ridx: number = 0

        rotation index for this key pair set

      • kidx: number = 0

        starting key index for this key pair set

      • temp: boolean = false

        true means use temp stretch otherwise use time set by tier for streching

      Returns Keys