Skip to main content

Crate hns_wallet_ffi

Crate hns_wallet_ffi 

Source
Expand description

Versioned, framed, secret-minimizing private wallet service ABI.

Structs§

AccountSummary
ApprovalPrompt
HnsNameDisclosure
One canonical Handshake name disclosed by a permission prompt. The hash is lowercase hexadecimal so a trusted UI can render and compare the exact authority being granted without receiving private wallet/name state.
HostAuthorityFacts
HostHello
ProviderBinding
Wallet-owned provider authority binding carried by every private provider output. Generation zero is valid only while the authority has never had a permission grant or revocation tombstone.
ProviderCapabilitySnapshot
ProviderEventEnvelope
SecretString
An owned ABI secret that zeroizes its allocation on drop and never prints its plaintext. It deliberately does not implement Clone.
ServiceFailure
ServiceHello
ServiceLimits
SessionEnvelope
WalletHnsAuthorityContext
Wallet-service evidence joined to a trusted native broker lease by the browser host. This value is not independently an authority and is never a website/provider projection.
WalletRuntimeStatus
WorkflowSummary

Enums§

AbiError
ApprovalDecision
ApprovalSummary
ApprovalWarning
DirectOfferApprovalAction
DisconnectReason
HostFrame
HostPlatform
ModuleApprovalAction
NameMarketApprovalAction
ProviderEventPayload
ProviderNamespace
ServiceCapability
ServiceErrorCode
ServiceFrame
ServiceRequest
ServiceResponse
WalletAuthorityContextRequest
Additive native-only request kept outside WalletRequest so the exact six-operation hnsReadOperationsV1 subset remains unchanged.
WalletHandshakeNetwork
Canonical Handshake network identity used by the native-only wallet authority-context operation. Simnet is intentionally absent because the browser authority broker admits only production, public test, and local regression networks.
WalletRequest
WalletResponse

Constants§

APPROVAL_SCHEMA_VERSION
LENGTH_PREFIX_BYTES
MAX_ABI_FRAME_BYTES
MAX_APPROVAL_FRAME_BYTES
MAX_APPROVAL_LIFETIME_MS
MAX_FAILURE_MESSAGE_BYTES
MAX_HNS_NAME_BYTES
MAX_HNS_NAME_DISCLOSURES
MAX_METHOD_BYTES
MAX_ORIGIN_BYTES
MAX_PASSPHRASE_BYTES
MAX_PROVIDER_EVENT_BYTES
MAX_PROVIDER_METHODS
MAX_PROVIDER_REQUEST_BYTES
MAX_PROVIDER_RESULT_BYTES
MAX_PUBLIC_ITEMS
MAX_PUBLIC_STRING_BYTES
MAX_RECOVERY_PHRASE_BYTES
PROVIDER_SCHEMA_VERSION
WALLET_ABI_VERSION

Functions§

declared_payload_len
decode_host_frame
decode_service_frame
encode_host_frame
Encode a host frame into an owned buffer that clears its allocation on drop. Host requests can contain wallet passphrases or restore phrases, so callers must retain this owner through the transport write instead of copying the bytes into an ordinary Vec<u8>.
encode_service_frame