Skip to content

Module BSV::Wallet::Serializer::AcquireCertificate

BRC-103 wire codec for the acquire_certificate call (call byte 17).

Args wire layout: [32 bytes: type] [33 bytes: certifier pubkey] [varint: field_count] per field: [varint-str key][varint-str value] [privileged params] [1 byte: acquisition_protocol] 1=direct, 2=issuance If direct: [32 bytes: serial_number] [36 bytes: revocation_outpoint] [varint: sig_len][sig bytes] [keyring_revealer: 0x0B or 33-byte pubkey] [varint: keyring_count] per entry: [varint-str key][varint-int base64_value] If issuance: [varint-str: certifier_url]

Result wire layout: [inline Certificate bytes (type+serial+subject+certifier+outpoint+fields+sig)]

Constants

ACQUISITION_DIRECT

Not documented.

ACQUISITION_ISSUANCE

Not documented.

CERT_TYPE_SIZE

Not documented.

KEYRING_REVEALER_CERTIFIER

0x0B — matches Go keyRingRevealerCertifier

PUBKEY_SIZE

Not documented.

SERIAL_SIZE

Not documented.

Public Class Methods

deserialize_args(bytes)

Not documented.

deserialize_result(bytes)

Not documented.

serialize_args(args)

Not documented.

serialize_result(result)

Not documented.