@blockchaincommons/components - v1.0.0-beta.4
    Preparing search index...

    Class ScryptParams

    Scrypt parameters for password-based key derivation.

    Parameters:

    • log_n: CPU/memory cost parameter (N = 2^log_n)
    • r: Block size parameter
    • p: Parallelization parameter

    Implements

    Index
    INDEX: KeyDerivationMethod = KeyDerivationMethod.Scrypt

    The method discriminant that opens the scrypt parameter array on the wire.

    • Parameters with a fresh random salt unless one is given.

      Parameters

      • __namedParameters: { salt?: Salt; logN?: number; r?: number; p?: number } = {}

      Returns ScryptParams

    • From the CBOR array, as the reference's TryFrom<CBOR> (a dcbor error): every failure is Cbor with the bare message. The index element is read as a usize (with dcbor's negative wrap) and its value ignored; the fixed-width fields wrap the same way.

      Parameters

      • cborValue: Cbor

      Returns ScryptParams