transaction/signature_proof

Types

pub type SignatureProof {
  SignatureProof(
    public_key: PublicKey,
    merkle_path: MerklePath,
    signature: Signature,
    webauthn_fields: Option(WebauthnFields),
  )
}

Constructors

  • SignatureProof(
      public_key: PublicKey,
      merkle_path: MerklePath,
      signature: Signature,
      webauthn_fields: Option(WebauthnFields),
    )
pub type WebauthnFields {
  WebauthnFields(
    origin_json_str: String,
    has_cross_origin_field: Bool,
    client_data_extra_json: String,
    authenticator_data_suffix: BitArray,
  )
}

Constructors

  • WebauthnFields(
      origin_json_str: String,
      has_cross_origin_field: Bool,
      client_data_extra_json: String,
      authenticator_data_suffix: BitArray,
    )

Functions

pub fn deserialize(
  buf: BitArray,
) -> Result(#(SignatureProof, BitArray), String)
pub fn deserialize_all(
  buf: BitArray,
) -> Result(SignatureProof, String)
pub fn deserialize_type_and_flags_byte(
  buf: BitArray,
) -> Result(
  #(
    #(SignatureProofAlgorithm, Option(SignatureProofFlags)),
    BitArray,
  ),
  String,
)
pub fn deserialize_webauthn_fields(
  buf: BitArray,
) -> Result(#(WebauthnFields, BitArray), String)
pub fn make_type_and_flags_byte(proof: SignatureProof) -> Int
pub fn parse_type_and_flags_byte(
  byte: Int,
) -> Result(
  #(SignatureProofAlgorithm, Option(SignatureProofFlags)),
  String,
)
pub fn serialize(proof: SignatureProof) -> BitArray
pub fn serialize_webauthn_fields(
  fields: WebauthnFields,
) -> BitArray
pub fn single_sig(
  public_key: PublicKey,
  signature: Signature,
) -> SignatureProof
pub fn single_sig_webauthn(
  public_key: PublicKey,
  signature: Signature,
  webauthn_fields: WebauthnFields,
) -> SignatureProof
Search Document