pub struct InstantiatedKey {
pub public: PublicKey,
pub script_code: Script,
pub address: Address,
pub tweak: Option<Vec<u8>>,
pub csv: Option<u16>,
}Expand description
instantiated key of an account
Fields§
§public: PublicKey§script_code: Script§address: Address§tweak: Option<Vec<u8>>§csv: Option<u16>Implementations§
Source§impl InstantiatedKey
impl InstantiatedKey
pub fn new<W>( address_type: AccountAddressType, network: Network, master: &ExtendedPubKey, tweak: Option<&[u8]>, kix: u32, scripter: W, csv: Option<u16>, context: Arc<SecpContext>, ) -> Result<InstantiatedKey, Error>
Trait Implementations§
Source§impl Clone for InstantiatedKey
impl Clone for InstantiatedKey
Source§fn clone(&self) -> InstantiatedKey
fn clone(&self) -> InstantiatedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for InstantiatedKey
impl<'de> Deserialize<'de> for InstantiatedKey
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
Auto Trait Implementations§
impl Freeze for InstantiatedKey
impl RefUnwindSafe for InstantiatedKey
impl Send for InstantiatedKey
impl Sync for InstantiatedKey
impl Unpin for InstantiatedKey
impl UnsafeUnpin for InstantiatedKey
impl UnwindSafe for InstantiatedKey
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