Expand description
HIP-0001 name swaps, signed marketplace listings, and HNS HTLC primitives.
Structs§
- Dutch
Auction - Dutch
Step - Fixed
Price Listing - A signed, expiring publication envelope around one fixed-price Shakedex
presign. The embedded
SwapProofremains the sole authority for the name, owner outpoint, lock script, seller key, price, network, and genesis hash. - HnsHtlc
- Runtime-independent descriptor for a native Handshake absolute-timelock
HTLC. The lock script has a receiver-signed SHA-256 preimage branch and a
refund-owner-signed
OP_CHECKLOCKTIMEVERIFYbranch. - HnsHtlc
Preimage - HsdTime
Lock - An HSD median-time lock encoded at 512-second consensus granularity.
- Listing
Cancellation - A signed, expiring tombstone for one exact fixed-price listing.
- Network
Binding - Shakedex
Lock Descriptor - Listing-independent identity and recovery authority for one Shakedex name lock.
- Swap
Proof
Enums§
- HnsHtlc
Spend - Shakedex
Spend Kind - Canonical spend branches of a HIP-0001/Shakedex v2 name lock.
- Swap
Error
Constants§
- COMPACT_
SIGNATURE_ SIZE - FIXED_
PRICE_ LISTING_ VERSION - HNS_
HTLC_ HASHLOCK_ SIZE - HNS_
HTLC_ PREIMAGE_ SIZE - HNS_
HTLC_ SIGHASH - The only signature-hash mode admitted by native HNS HTLC helpers.
- HNS_
HTLC_ VERSION - HSD_
LOCKTIME_ MULTIPLIER - LISTING_
CANCELLATION_ VERSION - MARKETPLACE_
SIGNATURE_ SIZE - MAX_
AUCTION_ BUNDLE_ SIZE - MAX_
AUCTION_ STEPS - MAX_
FIXED_ PRICE_ LISTING_ SIZE - MAX_
HNS_ HTLC_ DESCRIPTOR_ SIZE - MAX_
HSD_ TIME_ LOCK - MAX_
LISTING_ CANCELLATION_ SIZE - MAX_
SWAP_ PROOF_ SIZE - SHAKEDEX_
PROTOCOL_ VERSION - SHAKEDEX_
RECOVERY_ SIGHASH - Seller hash mode for transferring a locked name to an explicit recovery recipient before its later consensus FINALIZE.
- SWAP_
LOCK_ SCRIPT_ SIZE
Functions§
- canonical_
reverse_ dutch_ schedule - create_
lock_ script - encode_
time_ lock - encode_
time_ lock_ not_ before - Encode a safety deadline so the represented HSD median time is never
earlier than
seconds. - lock_
script_ hash