Ed25519PublicKeyProtocol
Ed25519PublicKeyProtocol Objects
class Ed25519PublicKeyProtocol(typing.Protocol)
An ed25519 public key.
BCS
The BCS serialized form for this type is defined by the following ABNF:
ed25519-public-key = 32OCTET
derive_address
def derive_address() -> Address
Derive an Address from this Public Key
An Address can be derived from an Ed25519PublicKey by hashing the
bytes of the public key with no prefix flag.
hash(32-byte ed25519 public key)
scheme
def scheme() -> SignatureScheme
Returns the signature scheme for this public key.
to_flagged_bytes
def to_flagged_bytes() -> bytes
Returns the bytes with signature scheme flag prepended.