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

    Class X25519PrivateKey

    X25519 private key for ECDH key exchange (32 bytes seed)

    X25519 is an elliptic-curve Diffie-Hellman key exchange protocol based on Curve25519 as defined in RFC 7748. It allows two parties to establish a shared secret key over an insecure channel.

    Key features of X25519:

    • High security (128-bit security level)
    • High performance
    • Small key sizes (32 bytes)
    • Protection against various side-channel attacks

    CBOR Serialization

    X25519PrivateKey is serialized to CBOR with tag 40010.

    #6.40010(h'<32-byte-private-key>')
    

    Implements

    • ToCbor
    • ToUR
    Index
    KEY_SIZE: number = x25519.PRIVATE_KEY_SIZE

    The byte length of a X25519PrivateKey.