key/public_key

Types

pub type PublicKey {
  EdDsaPublicKey(key: ed25519_public_key.PublicKey)
  EcDsaPublicKey(buf: BitArray)
}

Constructors

  • EdDsaPublicKey(key: ed25519_public_key.PublicKey)
  • EcDsaPublicKey(buf: BitArray)

Functions

pub fn deserialize_typed(
  buf: BitArray,
  typ: SignatureProofAlgorithm,
) -> Result(#(PublicKey, BitArray), String)
pub fn serialize(public_key: PublicKey) -> BitArray
pub fn to_address(public_key: PublicKey) -> Address
pub fn to_base64(public_key: PublicKey) -> String
pub fn to_base64_url(public_key: PublicKey) -> String
pub fn to_hex(public_key: PublicKey) -> String
Search Document