Static ReadonlyKEY_The byte length of a X25519PublicKey.
A copy of the bytes; mutating it does not touch this value.
StaticcodecTagged-CBOR codec; decode also accepts the untagged form.
StaticfromRestore an X25519PublicKey from a fixed-size array of bytes.
StaticfromGet hex string representation.
Get base64 representation.
The reference: the digest of the tagged CBOR, as the reference computes it.
The first four bytes of reference() in hex, the reference's ref_hex_short.
The reference's Display: the type name over the short reference.
The CBOR tags this type decodes from; the first one is used to encode.
Returns the untagged CBOR encoding (as a byte string).
The tagged CBOR form.
As a UR, typed by the first tag's name.
Staticfrom
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:
CBOR Serialization
X25519PublicKeyis serialized to CBOR with tag 40011.