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