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(
  builder: BytesBuilder,
  key: PublicKey,
) -> BytesBuilder
pub fn serialize_to_bits(key: PublicKey) -> BitArray
pub fn to_address(key: PublicKey) -> Address
pub fn to_base64(key: PublicKey) -> String
pub fn to_base64_url(key: PublicKey) -> String
pub fn to_hex(key: PublicKey) -> String
Search Document