Skip to content

Module BSV::Auth

Constants

AUTH_VERSION

Protocol version

MSG_CERT_REQUEST

Not documented.

MSG_CERT_RESPONSE

Not documented.

MSG_GENERAL

Not documented.

MSG_INITIAL_REQUEST

Message type string constants (matching ts-sdk/go-sdk)

MSG_INITIAL_RESPONSE

Not documented.

Public Class Methods

get_verifiable_certificates(wallet, requested_certificates, verifier_identity_key)

Retrieves verifiable certificates from a wallet for presentation to a verifier.

Delegates to {GetVerifiableCertificates#get_verifiable_certificates}. - @param wallet [#list_certificates, #prove_certificate] the subject's wallet - @param requested_certificates [Hash] certifiers and type-to-fields mapping - @param verifier_identity_key [String] verifier's compressed public key hex - @return [Array]

validate_certificates(wallet, message, requested_certificates = nil)

Validates certificates attached to an incoming authenticated message.

Delegates to {ValidateCertificates#validate_certificates}. - @param wallet [#verify_signature, #decrypt] the verifier's wallet - @param message [Hash] incoming authenticated message - @param requested_certificates [Hash, nil] optional certifier/type filter - @raise [AuthError] on any validation failure