signify-ts
    Preparing search index...

    Interface Creator

    Interface for creating a key pair based on an algorithm.

    interface Creator {
        salt: string;
        stem: string;
        tier: Tier;
        create(
            codes: undefined | string[],
            count: number,
            code: string,
            transferable: boolean,
            pidx: number,
            ridx: number,
            kidx: number,
            temp: boolean,
        ): Keys;
    }

    Implemented by

    Index

    Properties

    Methods

    Properties

    salt: string

    Salt used for key pair generation. Used only for Salty key creation.

    stem: string

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

    tier: Tier

    Security tier used during stretching.

    Methods

    • Creates a key pair

      Parameters

      • codes: undefined | string[]

        list of derivation codes one per key pair to create

      • count: number

        count of key pairs to create if codes not provided

      • code: string

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

      • transferable: boolean

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

      • pidx: number

        prefix index for this keypair sequence

      • ridx: number

        rotation index for this key pair set

      • kidx: number

        starting key index for this key pair set

      • temp: boolean

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

      Returns Keys