key/signature

Types

pub type Signature {
  EdDsaSignature(sig: ed25519_signature.Signature)
  EcDsaSignature(buf: BitArray)
}

Constructors

  • EdDsaSignature(sig: ed25519_signature.Signature)
  • EcDsaSignature(buf: BitArray)

Functions

pub fn create(
  private: PrivateKey,
  public: PublicKey,
  data: BitArray,
) -> Signature
pub fn deserialize_typed(
  buf: BitArray,
  typ: SignatureProofAlgorithm,
) -> Result(#(Signature, BitArray), String)
pub fn serialize(signature: Signature) -> BitArray
pub fn to_base64(signature: Signature) -> String
pub fn to_base64_url(signature: Signature) -> String
pub fn to_hex(signature: Signature) -> String
Search Document