pub struct DepositAddress {
pub tweak: String,
pub point: String,
pub x_only: String,
pub script: String,
pub address: String,
pub account: String,
pub nonce: u64,
}Expand description
A deposit address and how it was made (depositAddress’s result). With
serde the field names are the teller’s (xOnly).
Fields§
§tweak: StringThe tweak t, 64 hex: what the operator adds to its secret to spend.
point: StringThe output’s full point Q, compressed (66 hex).
x_only: Stringx(Q), 64 hex: the taproot output key.
script: StringThe output script, 5120 + x(Q), as hex.
address: StringThe bech32m address of the script under the prefix asked for.
account: StringThe account it is for, did:nostr:<x>.
nonce: u64The nonce: 0 for an account’s first address, another for another.
Implementations§
Source§impl DepositAddress
impl DepositAddress
Sourcepub fn script_pubkey(&self) -> ScriptBuf
pub fn script_pubkey(&self) -> ScriptBuf
The output script as a script.
Trait Implementations§
Source§impl Clone for DepositAddress
impl Clone for DepositAddress
Source§impl Debug for DepositAddress
impl Debug for DepositAddress
Source§impl<'de> Deserialize<'de> for DepositAddress
impl<'de> Deserialize<'de> for DepositAddress
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DepositAddress
Source§impl PartialEq for DepositAddress
impl PartialEq for DepositAddress
Source§impl Serialize for DepositAddress
impl Serialize for DepositAddress
impl StructuralPartialEq for DepositAddress
Auto Trait Implementations§
impl Freeze for DepositAddress
impl RefUnwindSafe for DepositAddress
impl Send for DepositAddress
impl Sync for DepositAddress
impl Unpin for DepositAddress
impl UnsafeUnpin for DepositAddress
impl UnwindSafe for DepositAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.