pub struct ListingEnvelopeV1 {Show 17 fields
pub version: u8,
pub seller_pubkey_hex: String,
pub coordinator_pubkey_hex: String,
pub network: String,
pub inscription_id: String,
pub seller_outpoint: String,
pub passthrough_outpoint: String,
pub seller_payout_script_pubkey_hex: String,
pub ask_sats: u64,
pub postage_sats: u64,
pub fee_rate_sat_vb: u64,
pub tx1_base64: String,
pub sale_psbt_base64: String,
pub recovery_psbt_base64: String,
pub created_at_unix: i64,
pub expires_at_unix: i64,
pub nonce: u64,
}Expand description
Fixed-price listing envelope v1.
Fields§
§version: u8Envelope schema version.
seller_pubkey_hex: StringSeller x-only Taproot public key hex.
coordinator_pubkey_hex: StringCoordinator x-only Taproot public key hex.
network: StringBitcoin network identifier.
inscription_id: StringInscription identifier.
seller_outpoint: StringOriginal seller-controlled inscription outpoint.
passthrough_outpoint: StringTX1 output that moves the inscription into the passthrough Taproot output.
seller_payout_script_pubkey_hex: StringSeller payout scriptPubKey hex committed by the sale signature.
ask_sats: u64Ask price in sats, excluding postage.
postage_sats: u64Postage value carried by the inscription output.
fee_rate_sat_vb: u64Target fee rate for the final sale.
tx1_base64: StringListing transaction PSBT/transaction payload, base64.
sale_psbt_base64: StringSeller sale-path PSBT, base64.
recovery_psbt_base64: StringSeller recovery PSBT/transaction payload, base64.
created_at_unix: i64UNIX timestamp (seconds) listing creation time.
expires_at_unix: i64UNIX timestamp (seconds) listing expiration time.
nonce: u64Caller-controlled nonce for uniqueness.
Implementations§
Source§impl ListingEnvelopeV1
impl ListingEnvelopeV1
Sourcepub fn canonical_json(&self) -> Result<Vec<u8>, ZincError>
pub fn canonical_json(&self) -> Result<Vec<u8>, ZincError>
Serialize this envelope using canonical JSON bytes.
Sourcepub fn listing_id_digest(&self) -> Result<[u8; 32], ZincError>
pub fn listing_id_digest(&self) -> Result<[u8; 32], ZincError>
Compute the SHA-256 listing id digest bytes.
Sourcepub fn listing_id_hex(&self) -> Result<String, ZincError>
pub fn listing_id_hex(&self) -> Result<String, ZincError>
Compute the SHA-256 listing id hex string.
Trait Implementations§
Source§impl Clone for ListingEnvelopeV1
impl Clone for ListingEnvelopeV1
Source§fn clone(&self) -> ListingEnvelopeV1
fn clone(&self) -> ListingEnvelopeV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListingEnvelopeV1
impl Debug for ListingEnvelopeV1
Source§impl<'de> Deserialize<'de> for ListingEnvelopeV1
impl<'de> Deserialize<'de> for ListingEnvelopeV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ListingEnvelopeV1
impl PartialEq for ListingEnvelopeV1
Source§fn eq(&self, other: &ListingEnvelopeV1) -> bool
fn eq(&self, other: &ListingEnvelopeV1) -> bool
self and other values to be equal, and is used by ==.