Skip to main content

Crate hns_marketplace_protocol

Crate hns_marketplace_protocol 

Source
Expand description

Canonical Handshake marketplace and bilateral cross-chain wire protocols.

Structs§

AssetAmount
AssetId
ChainId
DirectOffer
An offer setter’s exact, indivisible HNS/BTC exchange intent.
DirectOfferAcceptance
A responder’s signed acceptance of one exact live offer intent.
DirectOfferCancellation
A signed, monotonic withdrawal of an offer setter’s live intent.
HnsHtlcSessionBinding
Exact native-HNS descriptor and timing identity bound into one session hello side.
MarketPair
NameMarketHello
NetworkBinding
SettlementDeadline
ShakescapeHnsaEndpointBinding
Exact HNSA service and endpoint delegation material used for relay handoff.
ShakescapeHrmRootBinding
Exact HRM root material that authorized the configured named relay.
ShakescapePublicationAcceptanceExpectation
Exact durable wallet handoff fields covered by an endpoint receipt.
ShakescapePublicationAcceptancePolicy
Immutable endpoint policy bound into every signed relay acceptance.
SignedObjectHeader
SwapFundingStatus
SwapRedeemStatus
SwapRefundStatus
SwapSessionHello
SwapSessionProposal
Canonical responder-maker-signed session terms sent to the original offer setter, now the execution taker, before a fully accepted SwapSessionHello exists.
SwapWatchReady
A receiver-signed, session-bound acknowledgement that an exact HTLC watch is installed before its counterparty funds that chain. It deliberately contains no peer endpoint, wallet height, address, or transaction claim. A sender cannot use it as funding evidence; it only closes the bilateral pre-funding coordination gate.
VerifiedShakescapePublicationAcceptance
Canonically decoded and endpoint-signature-verified relay receipt.

Enums§

CrossChainMessage
DeadlineKind
FundingState
MarketplaceError
NameMarketMessage
RedeemState
RefundState
ShakescapePublicationMessageKind
ShakescapeRegistryVersion
SwapAssetSide
Selects the maker-offered or maker-received side of a swap agreement.

Constants§

CROSS_CHAIN_MARKET_PROTOCOL_VERSION
HNSA_NAMED_SERVICE_RESOURCE_PROFILE
Draft HRM/HNSA profile carried by Shakescape relay-acceptance receipts.
MARKETPLACE_PROTOCOL_VERSION
MAX_DIRECT_OFFER_SIZE
MAX_INVENTORY_ENTRIES
MAX_NAME_OFFERS_PER_MESSAGE
MAX_PRIMITIVE_SIZE
MAX_SETTLEMENT_UNIX_TIME
MAX_SHAKESCAPE_MARKET_PAYLOAD
MAX_SHAKESCAPE_PUBLICATION_ACCEPTANCE_BYTES
Maximum canonical size of one endpoint-signed publication receipt.
MAX_SHAKESCAPE_PUBLICATION_ACCEPTANCE_LIFETIME_SECONDS
Maximum lifetime admitted by the receipt codec, independent of a stricter caller-selected policy.
MAX_SWAP_MESSAGE_SIZE
NAME_MARKET_PROTOCOL_VERSION

Functions§

hns_refund_time_lock
Convert a marketplace Unix safety deadline to HSD’s encoded median-time lock without allowing 512-second granularity to shorten the promise.
sign_shakescape_publication_acceptance
Create a canonical, low-S DER endpoint receipt for one exact handoff.
verify_expected_shakescape_publication_acceptance
Verify and bind a receipt to the caller’s exact configured policy, durable handoff, and trusted acceptance time.
verify_shakescape_publication_acceptance
Decode, canonicalize, and verify one endpoint receipt.

Type Aliases§

Result