nimiq/transaction/signature_proof
Types
pub type SignatureProof {
  SignatureProof(
    public_key: public_key.PublicKey,
    merkle_path: merkle_path.MerklePath,
    signature: signature.Signature,
    webauthn_fields: option.Option(WebauthnFields),
  )
}Constructors
- 
          SignatureProof( public_key: public_key.PublicKey, merkle_path: merkle_path.MerklePath, signature: signature.Signature, webauthn_fields: option.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, )
Values
pub fn default() -> SignatureProofpub 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(
  #(
    #(
      signature_proof_algorithm.SignatureProofAlgorithm,
      option.Option(signature_proof_flags.SignatureProofFlags),
    ),
    BitArray,
  ),
  String,
)pub fn deserialize_webauthn_fields(
  buf: BitArray,
) -> Result(#(WebauthnFields, BitArray), String)pub fn make_type_and_flags_byte(proof: SignatureProof) -> Intpub fn parse_type_and_flags_byte(
  byte: Int,
) -> Result(
  #(
    signature_proof_algorithm.SignatureProofAlgorithm,
    option.Option(signature_proof_flags.SignatureProofFlags),
  ),
  String,
)pub fn serialize(
  builder: bytes_tree.BytesTree,
  proof: SignatureProof,
) -> bytes_tree.BytesTreepub fn serialize_to_bits(proof: SignatureProof) -> BitArraypub fn serialize_webauthn_fields(
  builder: bytes_tree.BytesTree,
  fields: WebauthnFields,
) -> bytes_tree.BytesTreepub fn single_sig(
  public_key: public_key.PublicKey,
  signature: signature.Signature,
) -> SignatureProofpub fn single_sig_webauthn(
  public_key: public_key.PublicKey,
  signature: signature.Signature,
  webauthn_fields: WebauthnFields,
) -> SignatureProof