Returns the signing public key.
StaticcodecTagged-CBOR codec; decode also accepts the untagged form.
Returns the encapsulation public key.
Note: Named to match the reference implementation's API (which has a typo but we maintain compatibility)
Verify a signature against a message.
Encapsulate a new shared secret using the encapsulation public key.
This implements the Encrypter interface, allowing PublicKeys to be used in encryption contexts where a shared secret needs to be generated.
A tuple of [SymmetricKey, EncapsulationCiphertext]
Returns a unique reference to this PublicKeys instance.
The reference is derived from the SHA-256 hash of the tagged CBOR representation, providing a unique, content-addressable identifier.
Get string representation.
PublicKeys(<short_reference>, <signing_public_key>, <encapsulation_public_key>)
The earlier short form (PublicKeys(<short_reference>)) was
observable in envelope notation as a missing key fingerprint
trail in the GSTP 'sender': XID(...) [ 'key': PublicKeys(...) ]
format-pin.
The CBOR tags this type decodes from; the first one is used to encode.
Returns the untagged CBOR encoding.
Format: [
The tagged CBOR form.
As a UR, typed by the first tag's name.
StaticfromBundle a signing key with an encapsulation key.
StaticfromDecodes a tagged PublicKeys; an untagged or foreign-tagged value is a Cbor failure.
PublicKeys - Container for a signing public key and an encapsulation public key.
This type provides a convenient way to share public keys for both signature verification and encryption operations.