PublicKeyProtocol
PublicKeyProtocol
protocol PublicKeyProtocol : AnyObject, Sendable
Enum of valid public keys for the signature schemes supported by IOTA.
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
The gap in the flag values of the public-key rule is intentional, as not all signature schemes
support public keys.
There is also a base64 encoding for this type defined as:
base64-public-key = string ; which is valid base64 encoded
; and the decoded bytes are defined
; by flagged-public-key
flagged-public-key = (ed25519-flag ed25519-public-key) /
(secp256k1-flag secp256k1-public-key) /
(secp256r1-flag secp256r1-public-key) /
(passkey-flag passkey-public-key)