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

    Class PrivateKeys

    PrivateKeys - Container for a signing key and an encapsulation key.

    This type provides a convenient way to manage a pair of private keys for both signing and encryption operations.

    Implements

    Index
    • Fresh Ed25519 signing and X25519 encapsulation keys.

      Parameters

      • __namedParameters: RngOptions = {}

      Returns PrivateKeys

    • Derive the corresponding public keys.

      Throws where a key cannot derive its public key: General for an ML-DSA signing key, Crypto for an ML-KEM encapsulation key.

      Returns PublicKeys

    • PrivateKeys(<refHexShort>, <signingPrivateKey>, <encapsulationPrivateKey>) The previous abbreviated form (PrivateKeys(<short>) only) was a parity drift caught by the E1a summarizer audit.

      Returns string

    • The CBOR tags this type decodes from; the first one is used to encode.

      Returns Tag[]

    • Returns the untagged CBOR encoding.

      Format: [, ]

      Returns Cbor

    • The tagged CBOR form.

      Returns Cbor

    • As a UR, typed by the first tag's name.

      Returns UR