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

    Class X25519PublicKey

    X25519 public key for ECDH key exchange (32 bytes)

    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.

    The X25519 public key is generated from a corresponding private key and is designed to be:

    • Compact (32 bytes)
    • Fast to use in key agreement operations
    • Resistant to various cryptographic attacks

    CBOR Serialization

    X25519PublicKey is serialized to CBOR with tag 40011.

    #6.40011(h'<32-byte-public-key>')
    

    Implements

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

    The byte length of a X25519PublicKey.

    • The first four bytes of reference() in hex, the reference's ref_hex_short.

      Returns string