diff --git a/rustdoc/latest/help.html b/rustdoc/latest/help.html index 1f75a3228..8d45ce653 100644 --- a/rustdoc/latest/help.html +++ b/rustdoc/latest/help.html @@ -1 +1 @@ -Help

Rustdoc help

Back
\ No newline at end of file +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/rustdoc/latest/settings.html b/rustdoc/latest/settings.html index 667b74a7d..3572ec926 100644 --- a/rustdoc/latest/settings.html +++ b/rustdoc/latest/settings.html @@ -1 +1 @@ -Settings

Rustdoc settings

Back
\ No newline at end of file +Settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/rustdoc/latest/trait.impl/core/convert/trait.From.js b/rustdoc/latest/trait.impl/core/convert/trait.From.js index ce45529c0..145625a4a 100644 --- a/rustdoc/latest/trait.impl/core/convert/trait.From.js +++ b/rustdoc/latest/trait.impl/core/convert/trait.From.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["zcash_address",[["impl From<ParseError> for ParseError"],["impl From<Typecode> for u32"],["impl<E> From<E> for ConversionError<E>"]]],["zcash_client_backend",[["impl From<PoolType> for ValuePool"],["impl From<ShieldedProtocol> for ValuePool"],["impl From<FeeRule> for i32"],["impl From<ValuePool> for i32"],["impl From<ShieldedProtocol> for i32"],["impl From<TryFromIntError> for BirthdayError"],["impl From<Error> for BirthdayError"],["impl<A: Authorization> From<&SpendDescription<A>> for CompactSaplingSpend"],["impl<CaErr, DbErr, TrErr> From<Error<DbErr, CaErr>> for Error<CaErr, DbErr, TrErr>"],["impl<CaErr, DbErr, TrErr> From<Status> for Error<CaErr, DbErr, TrErr>"],["impl<DE, TE, SE, FE, CE, N> From<InputSelectorError<DE, SE, CE, N>> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<ProposalError> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<BalanceError> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<ConversionError<&'static str>> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<Error> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<Error> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<Error<FE>> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<ShardTreeError<TE>> for Error<DE, TE, SE, FE, CE, N>"],["impl<DbErrT, ChangeErrT, N> From<GreedyInputSelectorError> for InputSelectorError<DbErrT, GreedyInputSelectorError, ChangeErrT, N>"],["impl<DbErrT, ChangeErrT, N> From<BalanceError> for InputSelectorError<DbErrT, GreedyInputSelectorError, ChangeErrT, N>"],["impl<E> From<Zip321Error> for ProposalDecodingError<E>"],["impl<E, S, C, N> From<ChangeError<C, N>> for InputSelectorError<E, S, C, N>"],["impl<E, S, F, N> From<ConversionError<&'static str>> for InputSelectorError<E, S, F, N>"],["impl<Proof> From<&OutputDescription<Proof>> for CompactSaplingOutput"],["impl<WE, BSE> From<ScanError> for Error<WE, BSE>"],["impl<const MAX: u8> From<BoundedU8<MAX>> for u8"],["impl<const MAX: u8> From<BoundedU8<MAX>> for usize"]]],["zcash_client_sqlite",[["impl From<ParseError> for SqliteClientError"],["impl From<SqliteClientError> for WalletMigrationError"],["impl From<TransparentCodecError> for SqliteClientError"],["impl From<AddressGenerationError> for SqliteClientError"],["impl From<AddressGenerationError> for WalletMigrationError"],["impl From<Error> for SqliteClientError"],["impl From<BalanceError> for SqliteClientError"],["impl From<BalanceError> for WalletMigrationError"],["impl From<Error> for FsBlockDbError"],["impl From<Error> for SqliteClientError"],["impl From<DecodeError> for FsBlockDbError"],["impl From<DecodeError> for SqliteClientError"],["impl From<Error> for FsBlockDbError"],["impl From<Error> for SqliteClientError"],["impl From<Error> for SqliteClientError"],["impl From<Error> for WalletMigrationError"],["impl From<ShardTreeError<Error>> for SqliteClientError"],["impl From<ShardTreeError<Error>> for WalletMigrationError"]]],["zcash_inspect",[["impl From<&'static str> for U256"],["impl From<i128> for U256"],["impl From<i16> for U256"],["impl From<i32> for U256"],["impl From<i64> for U256"],["impl From<i8> for U256"],["impl From<isize> for U256"],["impl From<u128> for U256"],["impl From<u16> for U256"],["impl From<u32> for U256"],["impl From<u64> for U256"],["impl From<u8> for U256"],["impl From<usize> for U256"],["impl From<U256> for [u8; 32]"],["impl From<TxOut> for ZTxOut"],["impl From<[u8; 32]> for U256"],["impl<'a> From<&'a U256> for U256"],["impl<'a> From<&'a [u8; 32]> for U256"],["impl<'a> From<&'a [u8]> for U256"]]],["zcash_keys",[["impl From<UnifiedAddress> for Address"],["impl From<CheckedHrpstringError> for Bech32DecodeError"],["impl From<DecodeError> for Bech32DecodeError"],["impl From<Error> for DerivationError"],["impl From<PaymentAddress> for Address"],["impl From<TransparentAddress> for Address"]]],["zcash_primitives",[["impl From<(u32, u32)> for Progress"],["impl From<BalanceError> for FeeError"],["impl<FE> From<FeeError<FE>> for Error<FE>"],["impl<FE> From<BalanceError> for Error<FE>"],["impl<FE> From<Error> for Error<FE>"],["impl<FE> From<SpendError> for Error<FE>"]]],["zcash_protocol",[["impl From<&Memo> for MemoBytes"],["impl From<&ZatBalance> for i64"],["impl From<&Zatoshis> for ZatBalance"],["impl From<Infallible> for BalanceError"],["impl From<BranchId> for u32"],["impl From<Memo> for MemoBytes"],["impl From<u32> for BlockHeight"],["impl From<BlockHeight> for i64"],["impl From<BlockHeight> for u32"],["impl From<BlockHeight> for u64"],["impl From<TextMemo> for String"],["impl From<TxId> for [u8; 32]"],["impl From<ZatBalance> for i64"],["impl From<Zatoshis> for u64"],["impl From<Zatoshis> for ZatBalance"]]],["zcash_transparent",[["impl From<NonHardenedChildIndex> for ChildNumber"],["impl From<TransparentKeyScope> for ChildNumber"],["impl From<Scope> for TransparentKeyScope"]]],["zip321",[["impl<E: Display> From<ConversionError<E>> for Zip321Error"]]]]); + var implementors = Object.fromEntries([["zcash_address",[["impl From<ParseError> for ParseError"],["impl From<Typecode> for u32"],["impl<E> From<E> for ConversionError<E>"]]],["zcash_client_backend",[["impl From<PoolType> for ValuePool"],["impl From<ShieldedProtocol> for ValuePool"],["impl From<FeeRule> for i32"],["impl From<ValuePool> for i32"],["impl From<ShieldedProtocol> for i32"],["impl From<TryFromIntError> for BirthdayError"],["impl From<Error> for BirthdayError"],["impl<A: Authorization> From<&SpendDescription<A>> for CompactSaplingSpend"],["impl<CaErr, DbErr, TrErr> From<Error<DbErr, CaErr>> for Error<CaErr, DbErr, TrErr>"],["impl<CaErr, DbErr, TrErr> From<Status> for Error<CaErr, DbErr, TrErr>"],["impl<DE, TE, SE, FE, CE, N> From<InputSelectorError<DE, SE, CE, N>> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<ProposalError> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<BalanceError> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<ConversionError<&'static str>> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<Error> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<Error> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<Error<FE>> for Error<DE, TE, SE, FE, CE, N>"],["impl<DE, TE, SE, FE, CE, N> From<ShardTreeError<TE>> for Error<DE, TE, SE, FE, CE, N>"],["impl<DbErrT, ChangeErrT, N> From<GreedyInputSelectorError> for InputSelectorError<DbErrT, GreedyInputSelectorError, ChangeErrT, N>"],["impl<DbErrT, ChangeErrT, N> From<BalanceError> for InputSelectorError<DbErrT, GreedyInputSelectorError, ChangeErrT, N>"],["impl<E> From<Zip321Error> for ProposalDecodingError<E>"],["impl<E, S, C, N> From<ChangeError<C, N>> for InputSelectorError<E, S, C, N>"],["impl<E, S, F, N> From<ConversionError<&'static str>> for InputSelectorError<E, S, F, N>"],["impl<Proof> From<&OutputDescription<Proof>> for CompactSaplingOutput"],["impl<WE, BSE> From<ScanError> for Error<WE, BSE>"],["impl<const MAX: u8> From<BoundedU8<MAX>> for u8"],["impl<const MAX: u8> From<BoundedU8<MAX>> for usize"]]],["zcash_client_sqlite",[["impl From<ParseError> for SqliteClientError"],["impl From<SqliteClientError> for WalletMigrationError"],["impl From<TransparentCodecError> for SqliteClientError"],["impl From<AddressGenerationError> for SqliteClientError"],["impl From<AddressGenerationError> for WalletMigrationError"],["impl From<Error> for SqliteClientError"],["impl From<BalanceError> for SqliteClientError"],["impl From<BalanceError> for WalletMigrationError"],["impl From<Error> for FsBlockDbError"],["impl From<Error> for SqliteClientError"],["impl From<DecodeError> for FsBlockDbError"],["impl From<DecodeError> for SqliteClientError"],["impl From<Error> for FsBlockDbError"],["impl From<Error> for SqliteClientError"],["impl From<Error> for SqliteClientError"],["impl From<Error> for WalletMigrationError"],["impl From<ShardTreeError<Error>> for SqliteClientError"],["impl From<ShardTreeError<Error>> for WalletMigrationError"]]],["zcash_inspect",[["impl From<&'static str> for U256"],["impl From<i128> for U256"],["impl From<i16> for U256"],["impl From<i32> for U256"],["impl From<i64> for U256"],["impl From<i8> for U256"],["impl From<isize> for U256"],["impl From<u128> for U256"],["impl From<u16> for U256"],["impl From<u32> for U256"],["impl From<u64> for U256"],["impl From<u8> for U256"],["impl From<usize> for U256"],["impl From<U256> for [u8; 32]"],["impl From<TxOut> for ZTxOut"],["impl From<[u8; 32]> for U256"],["impl<'a> From<&'a U256> for U256"],["impl<'a> From<&'a [u8; 32]> for U256"],["impl<'a> From<&'a [u8]> for U256"]]],["zcash_keys",[["impl From<UnifiedAddress> for Address"],["impl From<CheckedHrpstringError> for Bech32DecodeError"],["impl From<DecodeError> for Bech32DecodeError"],["impl From<Error> for DerivationError"],["impl From<PaymentAddress> for Address"],["impl From<TransparentAddress> for Address"]]],["zcash_primitives",[["impl From<(u32, u32)> for Progress"],["impl From<BalanceError> for FeeError"],["impl<FE> From<FeeError<FE>> for Error<FE>"],["impl<FE> From<BalanceError> for Error<FE>"],["impl<FE> From<Error> for Error<FE>"],["impl<FE> From<SpendError> for Error<FE>"]]],["zcash_protocol",[["impl From<&Memo> for MemoBytes"],["impl From<&ZatBalance> for i64"],["impl From<&Zatoshis> for ZatBalance"],["impl From<Infallible> for BalanceError"],["impl From<BranchId> for u32"],["impl From<Memo> for MemoBytes"],["impl From<u32> for BlockHeight"],["impl From<BlockHeight> for i64"],["impl From<BlockHeight> for u32"],["impl From<BlockHeight> for u64"],["impl From<TextMemo> for String"],["impl From<TxId> for [u8; 32]"],["impl From<ZatBalance> for i64"],["impl From<Zatoshis> for u64"],["impl From<Zatoshis> for ZatBalance"]]],["zcash_transparent",[["impl From<NonHardenedChildIndex> for ChildNumber"],["impl From<TransparentKeyScope> for ChildNumber"],["impl From<Scope> for TransparentKeyScope"]]],["zip321",[["impl<E: Display> From<ConversionError<E>> for Zip321Error"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[1119,13147,7993,7401,1976,2748,6206,1038,448]} \ No newline at end of file +//{"start":57,"fragment_lengths":[1119,13242,7993,7401,1976,2748,6206,1038,448]} \ No newline at end of file diff --git a/rustdoc/latest/zcash_client_backend/data_api/testing/struct.TestState.html b/rustdoc/latest/zcash_client_backend/data_api/testing/struct.TestState.html index 0c45fe886..394378d2e 100644 --- a/rustdoc/latest/zcash_client_backend/data_api/testing/struct.TestState.html +++ b/rustdoc/latest/zcash_client_backend/data_api/testing/struct.TestState.html @@ -105,18 +105,18 @@ input_selector: &InputsT, change_strategy: &ChangeT, usk: &UnifiedSpendingKey, - request: TransactionRequest, + request: TransactionRequest, ovk_policy: OvkPolicy, min_confirmations: NonZeroU32, ) -> Result<NonEmpty<TxId>, TransferErrT<DbT, InputsT, ChangeT>>
where InputsT: InputSelector<InputSource = DbT>, - ChangeT: ChangeStrategy<MetaSource = DbT>,

Prepares and executes the given [zip321::TransactionRequest] in a single step.

+ ChangeT: ChangeStrategy<MetaSource = DbT>,

Prepares and executes the given zip321::TransactionRequest in a single step.

Source

pub fn propose_transfer<InputsT, ChangeT>( &mut self, spend_from_account: <DbT as InputSource>::AccountId, input_selector: &InputsT, change_strategy: &ChangeT, - request: TransactionRequest, + request: TransactionRequest, min_confirmations: NonZeroU32, ) -> Result<Proposal<ChangeT::FeeRule, <DbT as InputSource>::NoteRef>, ProposeTransferErrT<DbT, Infallible, InputsT, ChangeT>>
where InputsT: InputSelector<InputSource = DbT>, diff --git a/rustdoc/latest/zcash_client_backend/data_api/wallet/fn.propose_transfer.html b/rustdoc/latest/zcash_client_backend/data_api/wallet/fn.propose_transfer.html index b91537ef5..e25dd7adb 100644 --- a/rustdoc/latest/zcash_client_backend/data_api/wallet/fn.propose_transfer.html +++ b/rustdoc/latest/zcash_client_backend/data_api/wallet/fn.propose_transfer.html @@ -4,7 +4,7 @@ spend_from_account: <DbT as InputSource>::AccountId, input_selector: &InputsT, change_strategy: &ChangeT, - request: TransactionRequest, + request: TransactionRequest, min_confirmations: NonZeroU32, ) -> Result<Proposal<ChangeT::FeeRule, <DbT as InputSource>::NoteRef>, ProposeTransferErrT<DbT, CommitmentTreeErrT, InputsT, ChangeT>>
where DbT: WalletRead + InputSource<Error = <DbT as WalletRead>::Error>, diff --git a/rustdoc/latest/zcash_client_backend/data_api/wallet/index.html b/rustdoc/latest/zcash_client_backend/data_api/wallet/index.html index 6bd0dd1b2..73680e7c4 100644 --- a/rustdoc/latest/zcash_client_backend/data_api/wallet/index.html +++ b/rustdoc/latest/zcash_client_backend/data_api/wallet/index.html @@ -6,7 +6,7 @@ shielded internal address belonging to their wallet.

The important high-level operations provided by this module are propose_transfer, and create_proposed_transactions.

-

propose_transfer takes a TransactionRequest object, selects inputs notes and +

propose_transfer takes a TransactionRequest object, selects inputs notes and computes the fees required to satisfy that request, and returns a Proposal object that describes the transaction to be made.

create_proposed_transactions constructs one or more Zcash [Transaction]s based upon a diff --git a/rustdoc/latest/zcash_client_backend/data_api/wallet/input_selection/struct.GreedyInputSelector.html b/rustdoc/latest/zcash_client_backend/data_api/wallet/input_selection/struct.GreedyInputSelector.html index 5937a3d13..cbb797bcb 100644 --- a/rustdoc/latest/zcash_client_backend/data_api/wallet/input_selection/struct.GreedyInputSelector.html +++ b/rustdoc/latest/zcash_client_backend/data_api/wallet/input_selection/struct.GreedyInputSelector.html @@ -19,7 +19,7 @@ target_height: BlockHeight, anchor_height: BlockHeight, account: <DbT as InputSource>::AccountId, - transaction_request: TransactionRequest, + transaction_request: TransactionRequest, change_strategy: &ChangeT, ) -> Result<Proposal<<ChangeT as ChangeStrategy>::FeeRule, DbT::NoteRef>, InputSelectorError<<DbT as InputSource>::Error, Self::Error, ChangeT::Error, DbT::NoteRef>>

where ParamsT: Parameters, diff --git a/rustdoc/latest/zcash_client_backend/data_api/wallet/input_selection/trait.InputSelector.html b/rustdoc/latest/zcash_client_backend/data_api/wallet/input_selection/trait.InputSelector.html index d7934cff5..cce7c7999 100644 --- a/rustdoc/latest/zcash_client_backend/data_api/wallet/input_selection/trait.InputSelector.html +++ b/rustdoc/latest/zcash_client_backend/data_api/wallet/input_selection/trait.InputSelector.html @@ -10,7 +10,7 @@ target_height: BlockHeight, anchor_height: BlockHeight, account: <Self::InputSource as InputSource>::AccountId, - transaction_request: TransactionRequest, + transaction_request: TransactionRequest, change_strategy: &ChangeT, ) -> Result<Proposal<<ChangeT as ChangeStrategy>::FeeRule, <Self::InputSource as InputSource>::NoteRef>, InputSelectorError<<Self::InputSource as InputSource>::Error, Self::Error, ChangeT::Error, <Self::InputSource as InputSource>::NoteRef>> where ParamsT: Parameters, @@ -32,7 +32,7 @@ target_height: BlockHeight, anchor_height: BlockHeight, account: <Self::InputSource as InputSource>::AccountId, - transaction_request: TransactionRequest, + transaction_request: TransactionRequest, change_strategy: &ChangeT, ) -> Result<Proposal<<ChangeT as ChangeStrategy>::FeeRule, <Self::InputSource as InputSource>::NoteRef>, InputSelectorError<<Self::InputSource as InputSource>::Error, Self::Error, ChangeT::Error, <Self::InputSource as InputSource>::NoteRef>>
where ParamsT: Parameters, diff --git a/rustdoc/latest/zcash_client_backend/index.html b/rustdoc/latest/zcash_client_backend/index.html index f6b416845..10f2b64c4 100644 --- a/rustdoc/latest/zcash_client_backend/index.html +++ b/rustdoc/latest/zcash_client_backend/index.html @@ -60,6 +60,6 @@

data_api::scanning::spanning_tree module. -

Re-exports§

Modules§

Source

pub fn single_step( - transaction_request: TransactionRequest, + transaction_request: TransactionRequest, payment_pools: BTreeMap<usize, PoolType>, transparent_inputs: Vec<WalletTransparentOutput>, shielded_inputs: Option<ShieldedInputs<NoteRef>>, diff --git a/rustdoc/latest/zcash_client_backend/proposal/struct.Step.html b/rustdoc/latest/zcash_client_backend/proposal/struct.Step.html index 951b98ce1..a50bdc460 100644 --- a/rustdoc/latest/zcash_client_backend/proposal/struct.Step.html +++ b/rustdoc/latest/zcash_client_backend/proposal/struct.Step.html @@ -1,7 +1,7 @@ Step in zcash_client_backend::proposal - Rust
zcash_client_backend::proposal

Struct Step

Source
pub struct Step<NoteRef> { /* private fields */ }
Expand description

The inputs to be consumed and outputs to be produced in a proposed transaction.

Implementations§

Source§

impl<NoteRef> Step<NoteRef>

Source

pub fn from_parts( prior_steps: &[Step<NoteRef>], - transaction_request: TransactionRequest, + transaction_request: TransactionRequest, payment_pools: BTreeMap<usize, PoolType>, transparent_inputs: Vec<WalletTransparentOutput>, shielded_inputs: Option<ShieldedInputs<NoteRef>>, @@ -16,7 +16,7 @@
  • transaction_request: The ZIP 321 transaction request describing the payments to be made.
  • payment_pools: A map from payment index to pool type. The set of payment indices -provided here must exactly match the set of payment indices in the [TransactionRequest], +provided here must exactly match the set of payment indices in the TransactionRequest, and the selected pool for an index must correspond to a valid receiver of the address at that index (or the address itself in the case of bare transparent or Sapling addresses).
  • @@ -26,7 +26,7 @@
  • is_shielding: A flag that identifies whether this is a wallet-internal shielding transaction.
  • -

    Source

    pub fn transaction_request(&self) -> &TransactionRequest

    Returns the transaction request that describes the payments to be made.

    +
    Source

    pub fn transaction_request(&self) -> &TransactionRequest

    Returns the transaction request that describes the payments to be made.

    Source

    pub fn payment_pools(&self) -> &BTreeMap<usize, PoolType>

    Returns the map from payment index to the pool that has been selected for the output that will fulfill that payment.

    Source

    pub fn transparent_inputs(&self) -> &[WalletTransparentOutput]

    Returns the transparent inputs that have been selected to fund the transaction.

    diff --git a/rustdoc/latest/zcash_client_backend/proto/enum.ProposalDecodingError.html b/rustdoc/latest/zcash_client_backend/proto/enum.ProposalDecodingError.html index 977cb4d03..8dec2de0b 100644 --- a/rustdoc/latest/zcash_client_backend/proto/enum.ProposalDecodingError.html +++ b/rustdoc/latest/zcash_client_backend/proto/enum.ProposalDecodingError.html @@ -1,6 +1,6 @@ ProposalDecodingError in zcash_client_backend::proto - Rust
    zcash_client_backend::proto

    Enum ProposalDecodingError

    Source
    pub enum ProposalDecodingError<DbError> {
     
    Show 16 variants NoSteps, - Zip321(Zip321Error), + Zip321(Zip321Error), NullInput(usize), TxIdInvalid(TryFromSliceError), ValuePoolNotSupported(i32), @@ -18,7 +18,7 @@
    }
    Expand description

    Errors that can occur in the process of decoding a Proposal from its protobuf representation.

    Variants§

    §

    NoSteps

    The encoded proposal contained no steps.

    -
    §

    Zip321(Zip321Error)

    The ZIP 321 transaction request URI was invalid.

    +
    §

    Zip321(Zip321Error)

    The ZIP 321 transaction request URI was invalid.

    §

    NullInput(usize)

    A proposed input was null.

    §

    TxIdInvalid(TryFromSliceError)

    A transaction identifier string did not decode to a valid transaction ID.

    §

    ValuePoolNotSupported(i32)

    An invalid value pool identifier was encountered.

    @@ -34,7 +34,7 @@
    §

    TransparentMemo

    A memo field was provided for a transparent output.

    §

    InvalidChangeRecipient(PoolType)

    Change outputs to the specified pool are not supported.

    §

    InvalidEphemeralRecipient(PoolType)

    Ephemeral outputs to the specified pool are not supported.

    -

    Trait Implementations§

    Source§

    impl<DbError: Clone> Clone for ProposalDecodingError<DbError>

    Source§

    fn clone(&self) -> ProposalDecodingError<DbError>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<DbError: Debug> Debug for ProposalDecodingError<DbError>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<E: Display> Display for ProposalDecodingError<E>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<E: Error + 'static> Error for ProposalDecodingError<E>

    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl<E> From<Zip321Error> for ProposalDecodingError<E>

    Source§

    fn from(value: Zip321Error) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl<DbError> Freeze for ProposalDecodingError<DbError>
    where +

    Trait Implementations§

    Source§

    impl<DbError: Clone> Clone for ProposalDecodingError<DbError>

    Source§

    fn clone(&self) -> ProposalDecodingError<DbError>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<DbError: Debug> Debug for ProposalDecodingError<DbError>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<E: Display> Display for ProposalDecodingError<E>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<E: Error + 'static> Error for ProposalDecodingError<E>

    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl<E> From<Zip321Error> for ProposalDecodingError<E>

    Source§

    fn from(value: Zip321Error) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl<DbError> Freeze for ProposalDecodingError<DbError>
    where DbError: Freeze,

    §

    impl<DbError> RefUnwindSafe for ProposalDecodingError<DbError>
    where DbError: RefUnwindSafe,

    §

    impl<DbError> Send for ProposalDecodingError<DbError>
    where DbError: Send,

    §

    impl<DbError> Sync for ProposalDecodingError<DbError>
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/enum.TransparentAddress.html b/rustdoc/latest/zcash_primitives/legacy/enum.TransparentAddress.html index f3572dcda..3b114d610 100644 --- a/rustdoc/latest/zcash_primitives/legacy/enum.TransparentAddress.html +++ b/rustdoc/latest/zcash_primitives/legacy/enum.TransparentAddress.html @@ -1,22 +1,22 @@ -TransparentAddress in zcash_primitives::legacy - Rust
    zcash_primitives::legacy

    Enum TransparentAddress

    Source
    pub enum TransparentAddress {
    +TransparentAddress in zcash_primitives::legacy - Rust
    zcash_primitives::legacy

    Enum TransparentAddress

    pub enum TransparentAddress {
         PublicKeyHash([u8; 20]),
         ScriptHash([u8; 20]),
     }
    Expand description

    A transparent address corresponding to either a public key hash or a script hash.

    -

    Variants§

    §

    PublicKeyHash([u8; 20])

    §

    ScriptHash([u8; 20])

    Implementations§

    Source§

    impl TransparentAddress

    Source

    pub fn script(&self) -> Script

    Generate the scriptPubKey corresponding to this address.

    -

    Trait Implementations§

    Source§

    impl Clone for TransparentAddress

    Source§

    fn clone(&self) -> TransparentAddress

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TransparentAddress

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Hash for TransparentAddress

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where +

    Variants§

    §

    PublicKeyHash([u8; 20])

    §

    ScriptHash([u8; 20])

    Implementations§

    §

    impl TransparentAddress

    pub fn script(&self) -> Script

    Generate the scriptPubKey corresponding to this address.

    +

    Trait Implementations§

    §

    impl Clone for TransparentAddress

    §

    fn clone(&self) -> TransparentAddress

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for TransparentAddress

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Hash for TransparentAddress

    §

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for TransparentAddress

    Source§

    fn cmp(&self, other: &TransparentAddress) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl Ord for TransparentAddress

    §

    fn cmp(&self, other: &TransparentAddress) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for TransparentAddress

    Source§

    fn eq(&self, other: &TransparentAddress) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for TransparentAddress

    Source§

    fn partial_cmp(&self, other: &TransparentAddress) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    §

    impl PartialEq for TransparentAddress

    §

    fn eq(&self, other: &TransparentAddress) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialOrd for TransparentAddress

    §

    fn partial_cmp(&self, other: &TransparentAddress) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl TryFromRawAddress for TransparentAddress

    Source§

    type Error = ()

    Conversion errors for the user type (e.g. failing to parse the data passed to -[Self::try_from_raw_sapling] as a valid Sapling address).
    Source§

    fn try_from_raw_transparent_p2pkh( +the >= operator. Read more

    §

    impl TryFromRawAddress for TransparentAddress

    §

    type Error = ()

    Conversion errors for the user type (e.g. failing to parse the data passed to +[Self::try_from_raw_sapling] as a valid Sapling address).
    §

    fn try_from_raw_transparent_p2pkh( data: [u8; 20], -) -> Result<TransparentAddress, ConversionError<<TransparentAddress as TryFromRawAddress>::Error>>

    Source§

    fn try_from_raw_transparent_p2sh( +) -> Result<TransparentAddress, ConversionError<<TransparentAddress as TryFromRawAddress>::Error>>

    §

    fn try_from_raw_transparent_p2sh( data: [u8; 20], ) -> Result<TransparentAddress, ConversionError<<TransparentAddress as TryFromRawAddress>::Error>>

    §

    fn try_from_raw_sprout( data: [u8; 64], @@ -26,7 +26,7 @@ data: Address, ) -> Result<Self, ConversionError<Self::Error>>

    §

    fn try_from_raw_tex( data: [u8; 20], -) -> Result<Self, ConversionError<Self::Error>>

    Source§

    impl Copy for TransparentAddress

    Source§

    impl Eq for TransparentAddress

    Source§

    impl StructuralPartialEq for TransparentAddress

    Auto Trait Implementations§

    §

    impl Freeze for TransparentAddress

    §

    impl RefUnwindSafe for TransparentAddress

    §

    impl Send for TransparentAddress

    §

    impl Sync for TransparentAddress

    §

    impl Unpin for TransparentAddress

    §

    impl UnwindSafe for TransparentAddress

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +) -> Result<Self, ConversionError<Self::Error>>

    §

    impl Copy for TransparentAddress

    §

    impl Eq for TransparentAddress

    §

    impl StructuralPartialEq for TransparentAddress

    Auto Trait Implementations§

    §

    impl Freeze for TransparentAddress

    §

    impl RefUnwindSafe for TransparentAddress

    §

    impl Send for TransparentAddress

    §

    impl Sync for TransparentAddress

    §

    impl Unpin for TransparentAddress

    §

    impl UnwindSafe for TransparentAddress

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/fn.pubkey_to_address.html b/rustdoc/latest/zcash_primitives/legacy/keys/fn.pubkey_to_address.html index 302c91032..b0dc98992 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/fn.pubkey_to_address.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/fn.pubkey_to_address.html @@ -1,2 +1,2 @@ -pubkey_to_address in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Function pubkey_to_address

    Source
    pub fn pubkey_to_address(pubkey: &PublicKey) -> TransparentAddress
    👎Deprecated: This function will be removed from the public API in an upcoming refactor.
    Available on crate feature transparent-inputs only.
    Expand description

    Derives the P2PKH transparent address corresponding to the given pubkey.

    +pubkey_to_address in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Function pubkey_to_address

    pub fn pubkey_to_address(pubkey: &PublicKey) -> TransparentAddress
    👎Deprecated: This function will be removed from the public API in an upcoming refactor.
    Available on crate feature transparent-inputs only.
    Expand description

    Derives the P2PKH transparent address corresponding to the given pubkey.

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/index.html b/rustdoc/latest/zcash_primitives/legacy/keys/index.html index 9cfc265b5..bc64c05b4 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/index.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/index.html @@ -1,4 +1,4 @@ -zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy

    Module keys

    Source
    Available on crate feature transparent-inputs only.
    Expand description

    Transparent key components.

    +zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy

    Module keys

    Available on crate feature transparent-inputs only.
    Expand description

    Transparent key components.

    Structs§

    pub fn derive_internal_secret_key( &self, address_index: NonHardenedChildIndex, ) -> Result<SecretKey, Error>

    Derives the BIP44 private spending key for the internal (change) child path m/44'/<coin_type>'/<account>'/1/<address_index>.

    -
    Source

    pub fn to_bytes(&self) -> Vec<u8>

    Returns the AccountPrivKey serialized using the encoding for a +

    pub fn to_bytes(&self) -> Vec<u8>

    Returns the AccountPrivKey serialized using the encoding for a BIP 32 ExtendedPrivateKey, excluding the 4 prefix bytes.

    -
    Source

    pub fn from_bytes(b: &[u8]) -> Option<AccountPrivKey>

    Decodes the AccountPrivKey from the encoding specified for a +

    pub fn from_bytes(b: &[u8]) -> Option<AccountPrivKey>

    Decodes the AccountPrivKey from the encoding specified for a BIP 32 ExtendedPrivateKey, excluding the 4 prefix bytes.

    -

    Trait Implementations§

    Source§

    impl Clone for AccountPrivKey

    Source§

    fn clone(&self) -> AccountPrivKey

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for AccountPrivKey

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for AccountPrivKey

    §

    fn clone(&self) -> AccountPrivKey

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for AccountPrivKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for AccountPrivKey

    §

    impl RefUnwindSafe for AccountPrivKey

    §

    impl Send for AccountPrivKey

    §

    impl Sync for AccountPrivKey

    §

    impl Unpin for AccountPrivKey

    §

    impl UnwindSafe for AccountPrivKey

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/struct.AccountPubKey.html b/rustdoc/latest/zcash_primitives/legacy/keys/struct.AccountPubKey.html index 967cdabbc..757ba21fb 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/struct.AccountPubKey.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/struct.AccountPubKey.html @@ -1,19 +1,19 @@ -AccountPubKey in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct AccountPubKey

    Source
    pub struct AccountPubKey(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    A BIP44 public key at the account path level m/44'/<coin_type>'/<account>'.

    +AccountPubKey in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct AccountPubKey

    pub struct AccountPubKey(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    A BIP44 public key at the account path level m/44'/<coin_type>'/<account>'.

    This provides the necessary derivation capability for the transparent component of a unified full viewing key.

    -

    Implementations§

    Source§

    impl AccountPubKey

    Source

    pub fn derive_external_ivk(&self) -> Result<ExternalIvk, Error>

    Derives the BIP44 public key at the external “change level” path +

    Implementations§

    §

    impl AccountPubKey

    pub fn derive_external_ivk(&self) -> Result<ExternalIvk, Error>

    Derives the BIP44 public key at the external “change level” path m/44'/<coin_type>'/<account>'/0.

    -
    Source

    pub fn derive_internal_ivk(&self) -> Result<InternalIvk, Error>

    Derives the BIP44 public key at the internal “change level” path +

    pub fn derive_internal_ivk(&self) -> Result<InternalIvk, Error>

    Derives the BIP44 public key at the internal “change level” path m/44'/<coin_type>'/<account>'/1.

    -
    Source

    pub fn derive_ephemeral_ivk(&self) -> Result<EphemeralIvk, Error>

    Derives the public key at the “ephemeral” path +

    pub fn derive_ephemeral_ivk(&self) -> Result<EphemeralIvk, Error>

    Derives the public key at the “ephemeral” path m/44'/<coin_type>'/<account>'/2.

    -
    Source

    pub fn derive_address_pubkey( +

    pub fn derive_address_pubkey( &self, scope: TransparentKeyScope, address_index: NonHardenedChildIndex, ) -> Result<PublicKey, Error>

    Derives the BIP44 public key at the “address level” path corresponding to the given scope and address index.

    -
    Source

    pub fn derive_pubkey_at_bip32_path<P>( +

    pub fn derive_pubkey_at_bip32_path<P>( &self, params: &P, expected_account_index: AccountId, @@ -22,11 +22,11 @@ P: Parameters,

    Derives the public key corresponding to the given full BIP 32 path.

    This enforces that the path has a prefix that could have been used to derive this AccountPubKey.

    -
    Source

    pub fn ovks_for_shielding(&self) -> (InternalOvk, ExternalOvk)

    Derives the internal ovk and external ovk corresponding to this +

    pub fn ovks_for_shielding(&self) -> (InternalOvk, ExternalOvk)

    Derives the internal ovk and external ovk corresponding to this transparent fvk. As specified in ZIP 316.

    -
    Source

    pub fn internal_ovk(&self) -> InternalOvk

    Derives the internal ovk corresponding to this transparent fvk.

    -
    Source

    pub fn external_ovk(&self) -> ExternalOvk

    Derives the external ovk corresponding to this transparent fvk.

    -
    Source

    pub fn serialize(&self) -> Vec<u8>

    Source

    pub fn deserialize(data: &[u8; 65]) -> Result<AccountPubKey, Error>

    Trait Implementations§

    Source§

    impl Clone for AccountPubKey

    Source§

    fn clone(&self) -> AccountPubKey

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for AccountPubKey

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for AccountPubKey

    §

    impl RefUnwindSafe for AccountPubKey

    §

    impl Send for AccountPubKey

    §

    impl Sync for AccountPubKey

    §

    impl Unpin for AccountPubKey

    §

    impl UnwindSafe for AccountPubKey

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    pub fn internal_ovk(&self) -> InternalOvk

    Derives the internal ovk corresponding to this transparent fvk.

    +

    pub fn external_ovk(&self) -> ExternalOvk

    Derives the external ovk corresponding to this transparent fvk.

    +

    pub fn serialize(&self) -> Vec<u8>

    pub fn deserialize(data: &[u8; 65]) -> Result<AccountPubKey, Error>

    Trait Implementations§

    §

    impl Clone for AccountPubKey

    §

    fn clone(&self) -> AccountPubKey

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for AccountPubKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for AccountPubKey

    §

    impl RefUnwindSafe for AccountPubKey

    §

    impl Send for AccountPubKey

    §

    impl Sync for AccountPubKey

    §

    impl Unpin for AccountPubKey

    §

    impl UnwindSafe for AccountPubKey

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/struct.EphemeralIvk.html b/rustdoc/latest/zcash_primitives/legacy/keys/struct.EphemeralIvk.html index 034fae5c2..6a561e38a 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/struct.EphemeralIvk.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/struct.EphemeralIvk.html @@ -1,11 +1,11 @@ -EphemeralIvk in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct EphemeralIvk

    Source
    pub struct EphemeralIvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    An incoming viewing key at the “ephemeral” path +EphemeralIvk in zcash_primitives::legacy::keys - Rust

    zcash_primitives::legacy::keys

    Struct EphemeralIvk

    pub struct EphemeralIvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    An incoming viewing key at the “ephemeral” path m/44'/<coin_type>'/<account>'/2.

    This allows derivation of ephemeral addresses for use within the wallet.

    -

    Implementations§

    Source§

    impl EphemeralIvk

    Implementations§

    §

    impl EphemeralIvk

    pub fn derive_ephemeral_address( &self, address_index: NonHardenedChildIndex, ) -> Result<TransparentAddress, Error>

    Derives a transparent address at the provided child index.

    -

    Trait Implementations§

    Source§

    impl Clone for EphemeralIvk

    Source§

    fn clone(&self) -> EphemeralIvk

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for EphemeralIvk

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for EphemeralIvk

    §

    fn clone(&self) -> EphemeralIvk

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for EphemeralIvk

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/struct.ExternalIvk.html b/rustdoc/latest/zcash_primitives/legacy/keys/struct.ExternalIvk.html index 3f79ad4b0..0f0177402 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/struct.ExternalIvk.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/struct.ExternalIvk.html @@ -1,12 +1,12 @@ -ExternalIvk in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct ExternalIvk

    Source
    pub struct ExternalIvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    An incoming viewing key at the BIP44 “external” path +ExternalIvk in zcash_primitives::legacy::keys - Rust

    zcash_primitives::legacy::keys

    Struct ExternalIvk

    pub struct ExternalIvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    An incoming viewing key at the BIP44 “external” path m/44'/<coin_type>'/<account>'/0.

    This allows derivation of child addresses that may be provided to external parties.

    -

    Trait Implementations§

    Source§

    impl Clone for ExternalIvk

    Source§

    fn clone(&self) -> ExternalIvk

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ExternalIvk

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl IncomingViewingKey for ExternalIvk

    Trait Implementations§

    §

    impl Clone for ExternalIvk

    §

    fn clone(&self) -> ExternalIvk

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for ExternalIvk

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl IncomingViewingKey for ExternalIvk

    §

    fn derive_address( &self, address_index: NonHardenedChildIndex, -) -> Result<TransparentAddress, Error>

    Derives a transparent address at the provided child index.
    Source§

    fn default_address(&self) -> (TransparentAddress, NonHardenedChildIndex)

    Searches the space of child indexes for an index that will +) -> Result<TransparentAddress, Error>

    Derives a transparent address at the provided child index.
    §

    fn default_address(&self) -> (TransparentAddress, NonHardenedChildIndex)

    Searches the space of child indexes for an index that will generate a valid transparent address, and returns the resulting -address and the index at which it was generated.
    Source§

    fn serialize(&self) -> Vec<u8>

    Source§

    fn deserialize(data: &[u8; 65]) -> Result<Self, Error>

    Auto Trait Implementations§

    §

    impl Freeze for ExternalIvk

    §

    impl RefUnwindSafe for ExternalIvk

    §

    impl Send for ExternalIvk

    §

    impl Sync for ExternalIvk

    §

    impl Unpin for ExternalIvk

    §

    impl UnwindSafe for ExternalIvk

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +address and the index at which it was generated.

    §

    fn serialize(&self) -> Vec<u8>

    §

    fn deserialize(data: &[u8; 65]) -> Result<Self, Error>

    Auto Trait Implementations§

    §

    impl Freeze for ExternalIvk

    §

    impl RefUnwindSafe for ExternalIvk

    §

    impl Send for ExternalIvk

    §

    impl Sync for ExternalIvk

    §

    impl Unpin for ExternalIvk

    §

    impl UnwindSafe for ExternalIvk

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/struct.ExternalOvk.html b/rustdoc/latest/zcash_primitives/legacy/keys/struct.ExternalOvk.html index f5c14a057..de60ae42a 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/struct.ExternalOvk.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/struct.ExternalOvk.html @@ -1,6 +1,6 @@ -ExternalOvk in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct ExternalOvk

    Source
    pub struct ExternalOvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    External outgoing viewing key used by zcashd for transparent-to-shielded spends to +ExternalOvk in zcash_primitives::legacy::keys - Rust

    zcash_primitives::legacy::keys

    Struct ExternalOvk

    pub struct ExternalOvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    External outgoing viewing key used by zcashd for transparent-to-shielded spends to external receivers.

    -

    Implementations§

    Source§

    impl ExternalOvk

    Source

    pub fn as_bytes(&self) -> [u8; 32]

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Implementations§

    §

    impl ExternalOvk

    pub fn as_bytes(&self) -> [u8; 32]

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/struct.InternalIvk.html b/rustdoc/latest/zcash_primitives/legacy/keys/struct.InternalIvk.html index 9ffbdc86f..fa6921b27 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/struct.InternalIvk.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/struct.InternalIvk.html @@ -1,13 +1,13 @@ -InternalIvk in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct InternalIvk

    Source
    pub struct InternalIvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    An incoming viewing key at the BIP44 “internal” path +InternalIvk in zcash_primitives::legacy::keys - Rust

    zcash_primitives::legacy::keys

    Struct InternalIvk

    pub struct InternalIvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    An incoming viewing key at the BIP44 “internal” path m/44'/<coin_type>'/<account>'/1.

    This allows derivation of change addresses for use within the wallet, but which should not be shared with external parties.

    -

    Trait Implementations§

    Source§

    impl Clone for InternalIvk

    Source§

    fn clone(&self) -> InternalIvk

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for InternalIvk

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl IncomingViewingKey for InternalIvk

    Trait Implementations§

    §

    impl Clone for InternalIvk

    §

    fn clone(&self) -> InternalIvk

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for InternalIvk

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl IncomingViewingKey for InternalIvk

    §

    fn derive_address( &self, address_index: NonHardenedChildIndex, -) -> Result<TransparentAddress, Error>

    Derives a transparent address at the provided child index.
    Source§

    fn default_address(&self) -> (TransparentAddress, NonHardenedChildIndex)

    Searches the space of child indexes for an index that will +) -> Result<TransparentAddress, Error>

    Derives a transparent address at the provided child index.
    §

    fn default_address(&self) -> (TransparentAddress, NonHardenedChildIndex)

    Searches the space of child indexes for an index that will generate a valid transparent address, and returns the resulting -address and the index at which it was generated.
    Source§

    fn serialize(&self) -> Vec<u8>

    Source§

    fn deserialize(data: &[u8; 65]) -> Result<Self, Error>

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +address and the index at which it was generated.

    §

    fn serialize(&self) -> Vec<u8>

    §

    fn deserialize(data: &[u8; 65]) -> Result<Self, Error>

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/struct.InternalOvk.html b/rustdoc/latest/zcash_primitives/legacy/keys/struct.InternalOvk.html index f72ef5806..cc04cb42f 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/struct.InternalOvk.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/struct.InternalOvk.html @@ -1,5 +1,5 @@ -InternalOvk in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct InternalOvk

    Source
    pub struct InternalOvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    Internal outgoing viewing key used for autoshielding.

    -

    Implementations§

    Source§

    impl InternalOvk

    Source

    pub fn as_bytes(&self) -> [u8; 32]

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +InternalOvk in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct InternalOvk

    pub struct InternalOvk(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    Internal outgoing viewing key used for autoshielding.

    +

    Implementations§

    §

    impl InternalOvk

    pub fn as_bytes(&self) -> [u8; 32]

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/struct.NonHardenedChildIndex.html b/rustdoc/latest/zcash_primitives/legacy/keys/struct.NonHardenedChildIndex.html index 89d8ee3c7..ce18b2401 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/struct.NonHardenedChildIndex.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/struct.NonHardenedChildIndex.html @@ -1,12 +1,12 @@ -NonHardenedChildIndex in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct NonHardenedChildIndex

    Source
    pub struct NonHardenedChildIndex(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    A child index for a derived transparent address.

    +NonHardenedChildIndex in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct NonHardenedChildIndex

    pub struct NonHardenedChildIndex(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    A child index for a derived transparent address.

    Only NON-hardened derivation is supported.

    -

    Implementations§

    Source§

    impl NonHardenedChildIndex

    Source

    pub const ZERO: NonHardenedChildIndex = _

    Source

    pub fn from_index(i: u32) -> Option<NonHardenedChildIndex>

    Parses the given ZIP 32 child index.

    +

    Implementations§

    §

    impl NonHardenedChildIndex

    pub const ZERO: NonHardenedChildIndex = _

    pub fn from_index(i: u32) -> Option<NonHardenedChildIndex>

    Parses the given ZIP 32 child index.

    Returns None if the hardened bit is set.

    -
    Source

    pub fn index(&self) -> u32

    Returns the index as a 32-bit integer.

    -
    Source

    pub fn next(&self) -> Option<NonHardenedChildIndex>

    Trait Implementations§

    Source§

    impl Clone for NonHardenedChildIndex

    Source§

    fn clone(&self) -> NonHardenedChildIndex

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl ConstantTimeEq for NonHardenedChildIndex

    Source§

    fn ct_eq(&self, other: &NonHardenedChildIndex) -> Choice

    Determine if two items are equal. Read more
    Source§

    fn ct_ne(&self, other: &Self) -> Choice

    Determine if two items are NOT equal. Read more
    Source§

    impl Debug for NonHardenedChildIndex

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for NonHardenedChildIndex

    Source§

    fn eq(&self, other: &NonHardenedChildIndex) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl TryFrom<ChildNumber> for NonHardenedChildIndex

    Source§

    type Error = ()

    The type returned in the event of a conversion error.
    Source§

    fn try_from( +

    pub fn index(&self) -> u32

    Returns the index as a 32-bit integer.

    +

    pub fn next(&self) -> Option<NonHardenedChildIndex>

    Trait Implementations§

    §

    impl Clone for NonHardenedChildIndex

    §

    fn clone(&self) -> NonHardenedChildIndex

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl ConstantTimeEq for NonHardenedChildIndex

    §

    fn ct_eq(&self, other: &NonHardenedChildIndex) -> Choice

    Determine if two items are equal. Read more
    Source§

    fn ct_ne(&self, other: &Self) -> Choice

    Determine if two items are NOT equal. Read more
    §

    impl Debug for NonHardenedChildIndex

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for NonHardenedChildIndex

    §

    fn eq(&self, other: &NonHardenedChildIndex) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl TryFrom<ChildNumber> for NonHardenedChildIndex

    §

    type Error = ()

    The type returned in the event of a conversion error.
    §

    fn try_from( value: ChildNumber, -) -> Result<NonHardenedChildIndex, <NonHardenedChildIndex as TryFrom<ChildNumber>>::Error>

    Performs the conversion.
    Source§

    impl Copy for NonHardenedChildIndex

    Source§

    impl Eq for NonHardenedChildIndex

    Source§

    impl StructuralPartialEq for NonHardenedChildIndex

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T

    Performs the conversion.
    §

    impl Copy for NonHardenedChildIndex

    §

    impl Eq for NonHardenedChildIndex

    §

    impl StructuralPartialEq for NonHardenedChildIndex

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/struct.TransparentKeyScope.html b/rustdoc/latest/zcash_primitives/legacy/keys/struct.TransparentKeyScope.html index 5e490249d..a2e99e378 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/struct.TransparentKeyScope.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/struct.TransparentKeyScope.html @@ -1,17 +1,17 @@ -TransparentKeyScope in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct TransparentKeyScope

    Source
    pub struct TransparentKeyScope(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    The scope of a transparent key.

    +TransparentKeyScope in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Struct TransparentKeyScope

    pub struct TransparentKeyScope(/* private fields */);
    Available on crate feature transparent-inputs only.
    Expand description

    The scope of a transparent key.

    This type can represent [zip32] internal and external scopes, as well as custom scopes that may be used in non-hardened derivation at the change level of the BIP 44 key path.

    -

    Implementations§

    Source§

    impl TransparentKeyScope

    Source

    pub const EXTERNAL: TransparentKeyScope = _

    The scope used to derive keys for external transparent addresses, +

    Implementations§

    §

    impl TransparentKeyScope

    pub const EXTERNAL: TransparentKeyScope = _

    The scope used to derive keys for external transparent addresses, intended to be used to send funds to this wallet.

    -
    Source

    pub const INTERNAL: TransparentKeyScope = _

    The scope used to derive keys for internal wallet operations, e.g. +

    pub const INTERNAL: TransparentKeyScope = _

    The scope used to derive keys for internal wallet operations, e.g. change or UTXO management.

    -
    Source

    pub const EPHEMERAL: TransparentKeyScope = _

    The scope used to derive keys for ephemeral transparent addresses.

    -
    Source

    pub const fn custom(i: u32) -> Option<TransparentKeyScope>

    Returns an arbitrary custom TransparentKeyScope.

    +

    pub const EPHEMERAL: TransparentKeyScope = _

    The scope used to derive keys for ephemeral transparent addresses.

    +

    pub const fn custom(i: u32) -> Option<TransparentKeyScope>

    Returns an arbitrary custom TransparentKeyScope.

    This should be used with care: funds associated with keys derived under a custom scope may not be recoverable if the wallet seed is restored in another wallet. It is usually preferable to use standardized key scopes.

    -

    Trait Implementations§

    Source§

    impl Clone for TransparentKeyScope

    Source§

    fn clone(&self) -> TransparentKeyScope

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TransparentKeyScope

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<Scope> for TransparentKeyScope

    Source§

    fn from(value: Scope) -> TransparentKeyScope

    Converts to this type from the input type.
    Source§

    impl PartialEq for TransparentKeyScope

    Source§

    fn eq(&self, other: &TransparentKeyScope) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for TransparentKeyScope

    Source§

    impl Eq for TransparentKeyScope

    Source§

    impl StructuralPartialEq for TransparentKeyScope

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for TransparentKeyScope

    §

    fn clone(&self) -> TransparentKeyScope

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for TransparentKeyScope

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Scope> for TransparentKeyScope

    §

    fn from(value: Scope) -> TransparentKeyScope

    Converts to this type from the input type.
    §

    impl PartialEq for TransparentKeyScope

    §

    fn eq(&self, other: &TransparentKeyScope) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl Copy for TransparentKeyScope

    §

    impl Eq for TransparentKeyScope

    §

    impl StructuralPartialEq for TransparentKeyScope

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/keys/trait.IncomingViewingKey.html b/rustdoc/latest/zcash_primitives/legacy/keys/trait.IncomingViewingKey.html index f9824f122..8dcbd31d9 100644 --- a/rustdoc/latest/zcash_primitives/legacy/keys/trait.IncomingViewingKey.html +++ b/rustdoc/latest/zcash_primitives/legacy/keys/trait.IncomingViewingKey.html @@ -1,4 +1,4 @@ -IncomingViewingKey in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Trait IncomingViewingKey

    Source
    pub trait IncomingViewingKey: Sized + SealedChangeLevelKey {
    +IncomingViewingKey in zcash_primitives::legacy::keys - Rust
    zcash_primitives::legacy::keys

    Trait IncomingViewingKey

    pub trait IncomingViewingKey: Sized + SealedChangeLevelKey {
         // Provided methods
         fn derive_address(
             &self,
    @@ -18,11 +18,11 @@
     
     

    A transparent viewing key for an account is thus defined as the root of a specific non-hardened subtree underneath the account’s path.

    -

    Provided Methods§

    Provided Methods§

    fn derive_address( &self, address_index: NonHardenedChildIndex, ) -> Result<TransparentAddress, Error>

    Derives a transparent address at the provided child index.

    -
    Source

    fn default_address(&self) -> (TransparentAddress, NonHardenedChildIndex)

    Searches the space of child indexes for an index that will +

    fn default_address(&self) -> (TransparentAddress, NonHardenedChildIndex)

    Searches the space of child indexes for an index that will generate a valid transparent address, and returns the resulting address and the index at which it was generated.

    -
    Source

    fn serialize(&self) -> Vec<u8>

    Source

    fn deserialize(data: &[u8; 65]) -> Result<Self, Error>

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file +

    fn serialize(&self) -> Vec<u8>

    fn deserialize(data: &[u8; 65]) -> Result<Self, Error>

    Dyn Compatibility§

    This trait is not dyn compatible.

    In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/legacy/struct.Script.html b/rustdoc/latest/zcash_primitives/legacy/struct.Script.html index d76a4c8ae..388a3d181 100644 --- a/rustdoc/latest/zcash_primitives/legacy/struct.Script.html +++ b/rustdoc/latest/zcash_primitives/legacy/struct.Script.html @@ -1,10 +1,10 @@ -Script in zcash_primitives::legacy - Rust
    zcash_primitives::legacy

    Struct Script

    Source
    pub struct Script(pub Vec<u8>);
    Expand description

    A serialized script, used inside transparent inputs and outputs of a transaction.

    -

    Tuple Fields§

    §0: Vec<u8>

    Implementations§

    Source§

    impl Script

    Source

    pub fn read<R>(reader: R) -> Result<Script, Error>
    where - R: Read,

    Source

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where - W: Write,

    Source

    pub fn serialized_size(&self) -> usize

    Returns the length of this script as encoded (including the initial CompactSize).

    -
    Source

    pub fn address(&self) -> Option<TransparentAddress>

    Returns the address that this Script contains, if any.

    -

    Trait Implementations§

    Source§

    impl Clone for Script

    Source§

    fn clone(&self) -> Script

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Script

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Script

    Source§

    fn default() -> Script

    Returns the “default value” for a type. Read more
    Source§

    impl PartialEq for Script

    Source§

    fn eq(&self, other: &Script) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Shl<&[u8]> for Script

    Source§

    type Output = Script

    The resulting type after applying the << operator.
    Source§

    fn shl(self, data: &[u8]) -> Script

    Performs the << operation. Read more
    Source§

    impl Shl<OpCode> for Script

    Source§

    type Output = Script

    The resulting type after applying the << operator.
    Source§

    fn shl(self, rhs: OpCode) -> Script

    Performs the << operation. Read more
    Source§

    impl Eq for Script

    Source§

    impl StructuralPartialEq for Script

    Auto Trait Implementations§

    §

    impl Freeze for Script

    §

    impl RefUnwindSafe for Script

    §

    impl Send for Script

    §

    impl Sync for Script

    §

    impl Unpin for Script

    §

    impl UnwindSafe for Script

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +Script in zcash_primitives::legacy - Rust
    zcash_primitives::legacy

    Struct Script

    pub struct Script(pub Vec<u8>);
    Expand description

    A serialized script, used inside transparent inputs and outputs of a transaction.

    +

    Tuple Fields§

    §0: Vec<u8>

    Implementations§

    §

    impl Script

    pub fn read<R>(reader: R) -> Result<Script, Error>
    where + R: Read,

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where + W: Write,

    pub fn serialized_size(&self) -> usize

    Returns the length of this script as encoded (including the initial CompactSize).

    +

    pub fn address(&self) -> Option<TransparentAddress>

    Returns the address that this Script contains, if any.

    +

    Trait Implementations§

    §

    impl Clone for Script

    §

    fn clone(&self) -> Script

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Script

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Script

    §

    fn default() -> Script

    Returns the “default value” for a type. Read more
    §

    impl PartialEq for Script

    §

    fn eq(&self, other: &Script) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl Shl<&[u8]> for Script

    §

    type Output = Script

    The resulting type after applying the << operator.
    §

    fn shl(self, data: &[u8]) -> Script

    Performs the << operation. Read more
    §

    impl Shl<OpCode> for Script

    §

    type Output = Script

    The resulting type after applying the << operator.
    §

    fn shl(self, rhs: OpCode) -> Script

    Performs the << operation. Read more
    §

    impl Eq for Script

    §

    impl StructuralPartialEq for Script

    Auto Trait Implementations§

    §

    impl Freeze for Script

    §

    impl RefUnwindSafe for Script

    §

    impl Send for Script

    §

    impl Sync for Script

    §

    impl Unpin for Script

    §

    impl UnwindSafe for Script

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/legacy/testing/fn.arb_transparent_addr.html b/rustdoc/latest/zcash_primitives/legacy/testing/fn.arb_transparent_addr.html index e5e54aa45..1ce6dafef 100644 --- a/rustdoc/latest/zcash_primitives/legacy/testing/fn.arb_transparent_addr.html +++ b/rustdoc/latest/zcash_primitives/legacy/testing/fn.arb_transparent_addr.html @@ -1 +1 @@ -arb_transparent_addr in zcash_primitives::legacy::testing - Rust
    zcash_primitives::legacy::testing

    Function arb_transparent_addr

    Source
    pub fn arb_transparent_addr() -> impl Strategy<Value = TransparentAddress>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_transparent_addr in zcash_primitives::legacy::testing - Rust
    zcash_primitives::legacy::testing

    Function arb_transparent_addr

    pub fn arb_transparent_addr() -> impl Strategy<Value = TransparentAddress>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/legacy/testing/index.html b/rustdoc/latest/zcash_primitives/legacy/testing/index.html index 5685a07c9..a6cbd6c8d 100644 --- a/rustdoc/latest/zcash_primitives/legacy/testing/index.html +++ b/rustdoc/latest/zcash_primitives/legacy/testing/index.html @@ -1 +1 @@ -zcash_primitives::legacy::testing - Rust
    zcash_primitives::legacy

    Module testing

    Source
    Available on crate feature test-dependencies only.

    Functions§

    \ No newline at end of file +zcash_primitives::legacy::testing - Rust
    zcash_primitives::legacy

    Module testing

    Available on crate feature test-dependencies only.

    Functions§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/struct.OutPoint.html b/rustdoc/latest/zcash_primitives/transaction/components/struct.OutPoint.html index 7e1daaea9..dfb186c46 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/struct.OutPoint.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/struct.OutPoint.html @@ -1,19 +1,19 @@ -OutPoint in zcash_primitives::transaction::components - Rust
    zcash_primitives::transaction::components

    Struct OutPoint

    Source
    pub struct OutPoint { /* private fields */ }

    Implementations§

    Source§

    impl OutPoint

    Source

    pub fn new(hash: [u8; 32], n: u32) -> OutPoint

    Constructs an OutPoint for the output at index n in the transaction +OutPoint in zcash_primitives::transaction::components - Rust

    zcash_primitives::transaction::components

    Struct OutPoint

    pub struct OutPoint { /* private fields */ }

    Implementations§

    §

    impl OutPoint

    pub fn new(hash: [u8; 32], n: u32) -> OutPoint

    Constructs an OutPoint for the output at index n in the transaction with txid hash.

    -
    Source

    pub const fn fake() -> OutPoint

    Available on crate feature test-dependencies only.

    Constructs a fake OutPoint for use in tests.

    -
    Source

    pub fn read<R>(reader: R) -> Result<OutPoint, Error>
    where - R: Read,

    Source

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where - W: Write,

    Source

    pub fn n(&self) -> u32

    Returns the output index of this OutPoint.

    -
    Source

    pub fn hash(&self) -> &[u8; 32]

    Returns the byte representation of the txid of the transaction containing this OutPoint.

    -
    Source

    pub fn txid(&self) -> &TxId

    Returns the txid of the transaction containing this OutPoint.

    -

    Trait Implementations§

    Source§

    impl Clone for OutPoint

    Source§

    fn clone(&self) -> OutPoint

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for OutPoint

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Ord for OutPoint

    Source§

    fn cmp(&self, other: &OutPoint) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    pub const fn fake() -> OutPoint

    Available on crate feature test-dependencies only.

    Constructs a fake OutPoint for use in tests.

    +

    pub fn read<R>(reader: R) -> Result<OutPoint, Error>
    where + R: Read,

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where + W: Write,

    pub fn n(&self) -> u32

    Returns the output index of this OutPoint.

    +

    pub fn hash(&self) -> &[u8; 32]

    Returns the byte representation of the txid of the transaction containing this OutPoint.

    +

    pub fn txid(&self) -> &TxId

    Returns the txid of the transaction containing this OutPoint.

    +

    Trait Implementations§

    §

    impl Clone for OutPoint

    §

    fn clone(&self) -> OutPoint

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for OutPoint

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Ord for OutPoint

    §

    fn cmp(&self, other: &OutPoint) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for OutPoint

    Source§

    fn eq(&self, other: &OutPoint) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for OutPoint

    Source§

    fn partial_cmp(&self, other: &OutPoint) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more

    §

    impl PartialEq for OutPoint

    §

    fn eq(&self, other: &OutPoint) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialOrd for OutPoint

    §

    fn partial_cmp(&self, other: &OutPoint) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Eq for OutPoint

    Source§

    impl StructuralPartialEq for OutPoint

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    §

    impl Eq for OutPoint

    §

    impl StructuralPartialEq for OutPoint

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/struct.TxIn.html b/rustdoc/latest/zcash_primitives/transaction/components/struct.TxIn.html index 9fcc38220..dac112b77 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/struct.TxIn.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/struct.TxIn.html @@ -1,18 +1,18 @@ -TxIn in zcash_primitives::transaction::components - Rust
    zcash_primitives::transaction::components

    Struct TxIn

    Source
    pub struct TxIn<A>
    where +TxIn in zcash_primitives::transaction::components - Rust
    zcash_primitives::transaction::components

    Struct TxIn

    pub struct TxIn<A>
    where A: Authorization,
    { pub prevout: OutPoint, pub script_sig: <A as Authorization>::ScriptSig, pub sequence: u32, -}

    Fields§

    §prevout: OutPoint§script_sig: <A as Authorization>::ScriptSig§sequence: u32

    Implementations§

    Source§

    impl TxIn<Unauthorized>

    Source

    pub fn new(prevout: OutPoint) -> TxIn<Unauthorized>

    Available on crate feature transparent-inputs only.
    Source§

    impl TxIn<Authorized>

    Source

    pub fn read<R>(reader: &mut R) -> Result<TxIn<Authorized>, Error>
    where - R: Read,

    Source

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where - W: Write,

    Trait Implementations§

    Source§

    impl<A> Clone for TxIn<A>
    where +}

    Fields§

    §prevout: OutPoint§script_sig: <A as Authorization>::ScriptSig§sequence: u32

    Implementations§

    §

    impl TxIn<Unauthorized>

    pub fn new(prevout: OutPoint) -> TxIn<Unauthorized>

    Available on crate feature transparent-inputs only.
    §

    impl TxIn<Authorized>

    pub fn read<R>(reader: &mut R) -> Result<TxIn<Authorized>, Error>
    where + R: Read,

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where + W: Write,

    Trait Implementations§

    §

    impl<A> Clone for TxIn<A>

    Source§

    fn clone(&self) -> TxIn<A>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<A> Debug for TxIn<A>
    where + <A as Authorization>::ScriptSig: Clone,

    §

    fn clone(&self) -> TxIn<A>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<A> Debug for TxIn<A>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl<A> PartialEq for TxIn<A>
    where + <A as Authorization>::ScriptSig: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<A> PartialEq for TxIn<A>

    Source§

    fn eq(&self, other: &TxIn<A>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<A> StructuralPartialEq for TxIn<A>

    §

    fn eq(&self, other: &TxIn<A>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<A> StructuralPartialEq for TxIn<A>
    where A: Authorization,

    Auto Trait Implementations§

    §

    impl<A> Freeze for TxIn<A>

    §

    impl<A> RefUnwindSafe for TxIn<A>

    §

    impl<A> Send for TxIn<A>
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/struct.TxOut.html b/rustdoc/latest/zcash_primitives/transaction/components/struct.TxOut.html index 0a5a34384..5cc33d50f 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/struct.TxOut.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/struct.TxOut.html @@ -1,11 +1,11 @@ -TxOut in zcash_primitives::transaction::components - Rust
    zcash_primitives::transaction::components

    Struct TxOut

    Source
    pub struct TxOut {
    +TxOut in zcash_primitives::transaction::components - Rust
    zcash_primitives::transaction::components

    Struct TxOut

    pub struct TxOut {
         pub value: Zatoshis,
         pub script_pubkey: Script,
    -}

    Fields§

    §value: Zatoshis§script_pubkey: Script

    Implementations§

    Source§

    impl TxOut

    Source

    pub fn read<R>(reader: &mut R) -> Result<TxOut, Error>
    where - R: Read,

    Source

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where - W: Write,

    Source

    pub fn recipient_address(&self) -> Option<TransparentAddress>

    Returns the address to which the TxOut was sent, if this is a valid P2SH or P2PKH output.

    -

    Trait Implementations§

    Source§

    impl Clone for TxOut

    Source§

    fn clone(&self) -> TxOut

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TxOut

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl OutputView for TxOut

    Source§

    fn value(&self) -> NonNegativeAmount

    Returns the value of the output being created.
    Source§

    fn script_pubkey(&self) -> &Script

    Returns the script corresponding to the newly created output.
    Source§

    fn serialized_size(&self) -> usize

    Returns the serialized size of the txout.
    Source§

    impl PartialEq for TxOut

    Source§

    fn eq(&self, other: &TxOut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for TxOut

    Source§

    impl StructuralPartialEq for TxOut

    Auto Trait Implementations§

    §

    impl Freeze for TxOut

    §

    impl RefUnwindSafe for TxOut

    §

    impl Send for TxOut

    §

    impl Sync for TxOut

    §

    impl Unpin for TxOut

    §

    impl UnwindSafe for TxOut

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +}

    Fields§

    §value: Zatoshis§script_pubkey: Script

    Implementations§

    §

    impl TxOut

    pub fn read<R>(reader: &mut R) -> Result<TxOut, Error>
    where + R: Read,

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where + W: Write,

    pub fn recipient_address(&self) -> Option<TransparentAddress>

    Returns the address to which the TxOut was sent, if this is a valid P2SH or P2PKH output.

    +

    Trait Implementations§

    §

    impl Clone for TxOut

    §

    fn clone(&self) -> TxOut

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for TxOut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl OutputView for TxOut

    Source§

    fn value(&self) -> NonNegativeAmount

    Returns the value of the output being created.
    Source§

    fn script_pubkey(&self) -> &Script

    Returns the script corresponding to the newly created output.
    Source§

    fn serialized_size(&self) -> usize

    Returns the serialized size of the txout.
    §

    impl PartialEq for TxOut

    §

    fn eq(&self, other: &TxOut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl Eq for TxOut

    §

    impl StructuralPartialEq for TxOut

    Auto Trait Implementations§

    §

    impl Freeze for TxOut

    §

    impl RefUnwindSafe for TxOut

    §

    impl Send for TxOut

    §

    impl Sync for TxOut

    §

    impl Unpin for TxOut

    §

    impl UnwindSafe for TxOut

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/enum.Error.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/enum.Error.html index 04eaba34f..ea3ae8e3b 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/enum.Error.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/enum.Error.html @@ -1,10 +1,10 @@ -Error in zcash_primitives::transaction::components::transparent::builder - Rust
    pub enum Error {
    +Error in zcash_primitives::transaction::components::transparent::builder - Rust
    pub enum Error {
         InvalidAddress,
         InvalidAmount,
         MissingSigningKey,
     }

    Variants§

    §

    InvalidAddress

    §

    InvalidAmount

    §

    MissingSigningKey

    A bundle could not be built because a required signing keys was missing.

    -

    Trait Implementations§

    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for Error

    Source§

    fn eq(&self, other: &Error) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for Error

    Source§

    impl StructuralPartialEq for Error

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for Error

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Display for Error

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for Error

    §

    fn eq(&self, other: &Error) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl Eq for Error

    §

    impl StructuralPartialEq for Error

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/index.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/index.html index 4f6031692..14107c541 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/index.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/index.html @@ -1,2 +1,2 @@ -zcash_primitives::transaction::components::transparent::builder - Rust
    Expand description

    Types and functions for building transparent transaction components.

    +zcash_primitives::transaction::components::transparent::builder - Rust
    zcash_primitives::transaction::components::transparent

    Module builder

    Expand description

    Types and functions for building transparent transaction components.

    Structs§

    Enums§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentBuilder.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentBuilder.html index c5b6851ef..c34707e20 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentBuilder.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentBuilder.html @@ -1,18 +1,18 @@ -TransparentBuilder in zcash_primitives::transaction::components::transparent::builder - Rust
    zcash_primitives::transaction::components::transparent::builder

    Struct TransparentBuilder

    Source
    pub struct TransparentBuilder { /* private fields */ }

    Implementations§

    Source§

    impl TransparentBuilder

    Source

    pub fn empty() -> TransparentBuilder

    Constructs a new TransparentBuilder

    -
    Source

    pub fn inputs(&self) -> &[TransparentInputInfo]

    Available on crate feature transparent-inputs only.

    Returns the list of transparent inputs that will be consumed by the transaction being +TransparentBuilder in zcash_primitives::transaction::components::transparent::builder - Rust

    zcash_primitives::transaction::components::transparent::builder

    Struct TransparentBuilder

    pub struct TransparentBuilder { /* private fields */ }

    Implementations§

    §

    impl TransparentBuilder

    pub fn empty() -> TransparentBuilder

    Constructs a new TransparentBuilder

    +

    pub fn inputs(&self) -> &[TransparentInputInfo]

    Available on crate feature transparent-inputs only.

    Returns the list of transparent inputs that will be consumed by the transaction being constructed.

    -
    Source

    pub fn outputs(&self) -> &[TxOut]

    Returns the transparent outputs that will be produced by the transaction being constructed.

    -
    Source

    pub fn add_input( +

    pub fn outputs(&self) -> &[TxOut]

    Returns the transparent outputs that will be produced by the transaction being constructed.

    +

    pub fn add_input( &mut self, pubkey: PublicKey, utxo: OutPoint, coin: TxOut, ) -> Result<(), Error>

    Available on crate feature transparent-inputs only.

    Adds a coin (the output of a previous transaction) to be spent to the transaction.

    -
    Source

    pub fn add_output( +

    pub fn add_output( &mut self, to: &TransparentAddress, value: Zatoshis, -) -> Result<(), Error>

    Source

    pub fn value_balance(&self) -> Result<ZatBalance, BalanceError>

    Source

    pub fn build(self) -> Option<Bundle<Unauthorized>>

    Source

    pub fn build_for_pczt(self) -> Option<Bundle>

    Builds a bundle containing the given inputs and outputs, for inclusion in a PCZT.

    +) -> Result<(), Error>

    pub fn value_balance(&self) -> Result<ZatBalance, BalanceError>

    pub fn build(self) -> Option<Bundle<Unauthorized>>

    pub fn build_for_pczt(self) -> Option<Bundle>

    Builds a bundle containing the given inputs and outputs, for inclusion in a PCZT.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentInputInfo.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentInputInfo.html index a39e7dfd0..983402c29 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentInputInfo.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentInputInfo.html @@ -1,4 +1,4 @@ -TransparentInputInfo in zcash_primitives::transaction::components::transparent::builder - Rust
    zcash_primitives::transaction::components::transparent::builder

    Struct TransparentInputInfo

    Source
    pub struct TransparentInputInfo { /* private fields */ }
    Available on crate feature transparent-inputs only.

    Implementations§

    Trait Implementations§

    Source§

    impl Clone for TransparentInputInfo

    Source§

    fn clone(&self) -> TransparentInputInfo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TransparentInputInfo

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl InputView for TransparentInputInfo

    Source§

    fn outpoint(&self) -> &OutPoint

    The outpoint to which the input refers.
    Source§

    fn coin(&self) -> &TxOut

    The previous output being spent.
    Source§

    fn serialized_size(&self) -> InputSize

    The size of the transparent script required to spend this input.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +TransparentInputInfo in zcash_primitives::transaction::components::transparent::builder - Rust
    zcash_primitives::transaction::components::transparent::builder

    Struct TransparentInputInfo

    pub struct TransparentInputInfo { /* private fields */ }
    Available on crate feature transparent-inputs only.

    Implementations§

    §

    impl TransparentInputInfo

    pub fn outpoint(&self) -> &OutPoint

    pub fn coin(&self) -> &TxOut

    Trait Implementations§

    §

    impl Clone for TransparentInputInfo

    §

    fn clone(&self) -> TransparentInputInfo

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for TransparentInputInfo

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl InputView for TransparentInputInfo

    Source§

    fn outpoint(&self) -> &OutPoint

    The outpoint to which the input refers.
    Source§

    fn coin(&self) -> &TxOut

    The previous output being spent.
    Source§

    fn serialized_size(&self) -> InputSize

    The size of the transparent script required to spend this input.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentSigningSet.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentSigningSet.html index 434fd84e3..3ca772a5d 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentSigningSet.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.TransparentSigningSet.html @@ -1,10 +1,10 @@ -TransparentSigningSet in zcash_primitives::transaction::components::transparent::builder - Rust
    zcash_primitives::transaction::components::transparent::builder

    Struct TransparentSigningSet

    Source
    pub struct TransparentSigningSet { /* private fields */ }
    Expand description

    A set of transparent signing keys.

    +TransparentSigningSet in zcash_primitives::transaction::components::transparent::builder - Rust
    zcash_primitives::transaction::components::transparent::builder

    Struct TransparentSigningSet

    pub struct TransparentSigningSet { /* private fields */ }
    Expand description

    A set of transparent signing keys.

    When the transparent-inputs feature flag is enabled, transparent signing keys can be stored in this set and used to authorize transactions with transparent inputs.

    -

    Implementations§

    Source§

    impl TransparentSigningSet

    Source

    pub fn new() -> TransparentSigningSet

    Constructs an empty set of signing keys.

    -
    Source

    pub fn add_key(&mut self, sk: SecretKey) -> PublicKey

    Available on crate feature transparent-inputs only.

    Adds a signing key to the set.

    +

    Implementations§

    §

    impl TransparentSigningSet

    pub fn new() -> TransparentSigningSet

    Constructs an empty set of signing keys.

    +

    pub fn add_key(&mut self, sk: SecretKey) -> PublicKey

    Available on crate feature transparent-inputs only.

    Adds a signing key to the set.

    Returns the corresponding pubkey.

    -

    Trait Implementations§

    Source§

    impl Default for TransparentSigningSet

    Source§

    fn default() -> TransparentSigningSet

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Default for TransparentSigningSet

    §

    fn default() -> TransparentSigningSet

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.Unauthorized.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.Unauthorized.html index c60786813..9135033ec 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.Unauthorized.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/builder/struct.Unauthorized.html @@ -1,7 +1,7 @@ -Unauthorized in zcash_primitives::transaction::components::transparent::builder - Rust
    zcash_primitives::transaction::components::transparent::builder

    Struct Unauthorized

    Source
    pub struct Unauthorized { /* private fields */ }

    Trait Implementations§

    Source§

    impl Authorization for Unauthorized

    Source§

    impl Clone for Unauthorized

    Source§

    fn clone(&self) -> Unauthorized

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Unauthorized

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl TransparentAuthorizingContext for Unauthorized

    Available on crate feature transparent-inputs only.
    Source§

    fn input_amounts(&self) -> Vec<Zatoshis>

    Returns the list of all transparent input amounts, provided +Unauthorized in zcash_primitives::transaction::components::transparent::builder - Rust
    zcash_primitives::transaction::components::transparent::builder

    Struct Unauthorized

    pub struct Unauthorized { /* private fields */ }

    Trait Implementations§

    §

    impl Authorization for Unauthorized

    §

    impl Clone for Unauthorized

    §

    fn clone(&self) -> Unauthorized

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Unauthorized

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl TransparentAuthorizingContext for Unauthorized

    Available on crate feature transparent-inputs only.
    §

    fn input_amounts(&self) -> Vec<Zatoshis>

    Returns the list of all transparent input amounts, provided so that wallets can commit to the transparent input breakdown without requiring the full data of the previous transactions -providing these inputs.
    Source§

    fn input_scriptpubkeys(&self) -> Vec<Script>

    Returns the list of all transparent input scriptPubKeys, provided +providing these inputs.
    §

    fn input_scriptpubkeys(&self) -> Vec<Script>

    Returns the list of all transparent input scriptPubKeys, provided so that wallets can commit to the transparent input breakdown without requiring the full data of the previous transactions providing these inputs.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.ParseError.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.ParseError.html index e3ddfaf9d..c5eb75d03 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.ParseError.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.ParseError.html @@ -1,4 +1,4 @@ -ParseError in zcash_primitives::transaction::components::transparent::pczt - Rust
    pub enum ParseError {
    +ParseError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum ParseError

    pub enum ParseError {
         InvalidRequiredHeightLocktime,
         InvalidRequiredTimeLocktime,
         InvalidSighashType,
    @@ -6,7 +6,7 @@
     }
    Expand description

    Errors that can occur while parsing a PCZT bundle.

    Variants§

    §

    InvalidRequiredHeightLocktime

    §

    InvalidRequiredTimeLocktime

    §

    InvalidSighashType

    An invalid sighash_type was provided.

    §

    InvalidValue

    An invalid value was provided.

    -

    Trait Implementations§

    Source§

    impl Debug for ParseError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for ParseError

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.SignerError.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.SignerError.html index 7f4be4d80..5b4fa4188 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.SignerError.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.SignerError.html @@ -1,9 +1,9 @@ -SignerError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum SignerError

    Source
    pub enum SignerError {
    +SignerError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum SignerError

    pub enum SignerError {
         WrongSpendingKey,
     }
    Expand description

    Errors that can occur while signing a transparent input in a PCZT.

    Variants§

    §

    WrongSpendingKey

    The provided sk does not match any pubkey involved with spend control of the input’s spent coin.

    -

    Trait Implementations§

    Source§

    impl Debug for SignerError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for SignerError

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.SpendFinalizerError.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.SpendFinalizerError.html index 18bc496bf..0fa639d04 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.SpendFinalizerError.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.SpendFinalizerError.html @@ -1,4 +1,4 @@ -SpendFinalizerError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum SpendFinalizerError

    Source
    pub enum SpendFinalizerError {
    +SpendFinalizerError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum SpendFinalizerError

    pub enum SpendFinalizerError {
         MissingSignature,
         UnexpectedSignatures,
         UnsupportedScriptPubkey,
    @@ -6,7 +6,7 @@
     

    Variants§

    §

    MissingSignature

    partial_signatures contained no signatures.

    §

    UnexpectedSignatures

    partial_signatures contained unexpected signatures.

    §

    UnsupportedScriptPubkey

    The script_pubkey kind is unsupported.

    -

    Trait Implementations§

    Source§

    impl Debug for SpendFinalizerError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for SpendFinalizerError

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.TxExtractorError.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.TxExtractorError.html index 12c7d2f9f..6bf6bd8ab 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.TxExtractorError.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.TxExtractorError.html @@ -1,9 +1,9 @@ -TxExtractorError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum TxExtractorError

    Source
    pub enum TxExtractorError {
    +TxExtractorError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum TxExtractorError

    pub enum TxExtractorError {
         MissingScriptSig,
     }
    Expand description

    Errors that can occur while extracting a regular transparent bundle from a PCZT bundle.

    Variants§

    §

    MissingScriptSig

    The Transaction Extractor role requires all script_sig fields to be set.

    -

    Trait Implementations§

    Source§

    impl Debug for TxExtractorError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for TxExtractorError

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.UpdaterError.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.UpdaterError.html index 1597d4c0c..da8551bed 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.UpdaterError.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.UpdaterError.html @@ -1,4 +1,4 @@ -UpdaterError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum UpdaterError

    Source
    pub enum UpdaterError {
    +UpdaterError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum UpdaterError

    pub enum UpdaterError {
         InvalidIndex,
         NotP2sh,
         WrongRedeemScript,
    @@ -6,7 +6,7 @@
     

    Variants§

    §

    InvalidIndex

    An out-of-bounds index was provided when looking up an input or output.

    §

    NotP2sh

    A redeem_script can only be set on a P2SH coin.

    §

    WrongRedeemScript

    The provided redeem_script does not match the input’s script_pubkey.

    -

    Trait Implementations§

    Source§

    impl Debug for UpdaterError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for UpdaterError

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.VerifyError.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.VerifyError.html index dcd8b3264..98611a79f 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.VerifyError.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/enum.VerifyError.html @@ -1,4 +1,4 @@ -VerifyError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum VerifyError

    Source
    pub enum VerifyError {
    +VerifyError in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Enum VerifyError

    pub enum VerifyError {
         NotP2sh,
         UnsupportedScriptPubkey,
         WrongRedeemScript,
    @@ -6,7 +6,7 @@
     

    Variants§

    §

    NotP2sh

    A redeem_script can only be set on a P2SH coin.

    §

    UnsupportedScriptPubkey

    The script_pubkey kind is unsupported.

    §

    WrongRedeemScript

    The provided redeem_script does not match the input’s script_pubkey.

    -

    Trait Implementations§

    Source§

    impl Debug for VerifyError

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for VerifyError

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/index.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/index.html index 7766be408..36d6a4769 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/index.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/index.html @@ -1,4 +1,4 @@ -zcash_primitives::transaction::components::transparent::pczt - Rust
    Expand description

    PCZT support for transparent Zcash.

    +zcash_primitives::transaction::components::transparent::pczt - Rust
    Expand description

    PCZT support for transparent Zcash.

    Structs§

    • The BIP 32 derivation path at which a key can be found.
    • PCZT fields that are specific to producing the transaction’s transparent bundle (if any).
    • Information about a transparent spend within a transaction.
    • An updater for a transparent PCZT input.
    • Information about a transparent output within a transaction.
    • An updater for a transparent PCZT output.
    • Authorizing data for a transparent bundle in a transaction that is just missing binding signatures.
    • An updater for a transparent PCZT bundle.

    Enums§

    Trait Implementations§

    §

    impl Debug for Bip32Derivation

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for Bip32Derivation

    §

    fn eq(&self, other: &Bip32Derivation) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl Eq for Bip32Derivation

    §

    impl StructuralPartialEq for Bip32Derivation

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Bundle.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Bundle.html index 1d94a9262..c4e2d52a5 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Bundle.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Bundle.html @@ -1,29 +1,29 @@ -Bundle in zcash_primitives::transaction::components::transparent::pczt - Rust
    pub struct Bundle { /* private fields */ }
    Expand description

    PCZT fields that are specific to producing the transaction’s transparent bundle (if +Bundle in zcash_primitives::transaction::components::transparent::pczt - Rust

    zcash_primitives::transaction::components::transparent::pczt

    Struct Bundle

    pub struct Bundle { /* private fields */ }
    Expand description

    PCZT fields that are specific to producing the transaction’s transparent bundle (if any).

    This struct is for representing Sapling in a partially-created transaction. If you have a fully-created transaction, use the regular Bundle struct.

    -

    Implementations§

    Source§

    impl Bundle

    Source

    pub fn parse( +

    Implementations§

    §

    impl Bundle

    pub fn parse( inputs: Vec<Input>, outputs: Vec<Output>, ) -> Result<Bundle, ParseError>

    Parses a PCZT bundle from its component parts.

    -
    Source§

    impl Bundle

    Source

    pub fn update_with<F>(&mut self, f: F) -> Result<(), UpdaterError>
    where +

    §

    impl Bundle

    pub fn update_with<F>(&mut self, f: F) -> Result<(), UpdaterError>
    where F: FnOnce(Updater<'_>) -> Result<(), UpdaterError>,

    Updates the bundle with information provided in the given closure.

    -
    Source§

    impl Bundle

    Source

    pub fn finalize_spends(&mut self) -> Result<(), SpendFinalizerError>

    Finalizes the spends for this bundle.

    -
    Source§

    impl Bundle

    §

    impl Bundle

    pub fn finalize_spends(&mut self) -> Result<(), SpendFinalizerError>

    Finalizes the spends for this bundle.

    +
    §

    impl Bundle

    pub fn extract_effects( &self, ) -> Result<Option<Bundle<EffectsOnly>>, TxExtractorError>

    Extracts the effects of this PCZT bundle as a regular Bundle.

    This is used by the Signer role to produce the transaction sighash.

    -
    Source

    pub fn extract(self) -> Result<Option<Bundle<Unbound>>, TxExtractorError>

    Extracts a fully authorized regular Bundle from this PCZT bundle.

    +

    pub fn extract(self) -> Result<Option<Bundle<Unbound>>, TxExtractorError>

    Extracts a fully authorized regular Bundle from this PCZT bundle.

    This is used by the Transaction Extractor role to produce the final transaction.

    -
    Source§

    impl Bundle

    Source

    pub fn inputs(&self) -> &Vec<Input>

    The transparent inputs in this bundle.

    +
    §

    impl Bundle

    pub fn inputs(&self) -> &Vec<Input>

    The transparent inputs in this bundle.

    Entries are added by the Constructor, and modified by an Updater, IO Finalizer, Signer, Combiner, or Spend Finalizer.

    -
    Source

    pub fn outputs(&self) -> &Vec<Output>

    The transparent outputs in this bundle.

    +

    pub fn outputs(&self) -> &Vec<Output>

    The transparent outputs in this bundle.

    Entries are added by the Constructor, and modified by an Updater, IO Finalizer, Signer, Combiner, or Spend Finalizer.

    -
    Source§

    impl Bundle

    Source

    pub fn inputs_mut(&mut self) -> &mut [Input]

    Returns a mutable reference to the inputs in this bundle.

    +
    §

    impl Bundle

    pub fn inputs_mut(&mut self) -> &mut [Input]

    Returns a mutable reference to the inputs in this bundle.

    This is used by Signers to apply signatures with Input::sign.

    -

    Trait Implementations§

    Source§

    impl Debug for Bundle

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Bundle

    §

    impl RefUnwindSafe for Bundle

    §

    impl Send for Bundle

    §

    impl Sync for Bundle

    §

    impl Unpin for Bundle

    §

    impl UnwindSafe for Bundle

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for Bundle

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Bundle

    §

    impl RefUnwindSafe for Bundle

    §

    impl Send for Bundle

    §

    impl Sync for Bundle

    §

    impl Unpin for Bundle

    §

    impl UnwindSafe for Bundle

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Input.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Input.html index 2d6ee5b10..0818f16b2 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Input.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Input.html @@ -1,7 +1,7 @@ -Input in zcash_primitives::transaction::components::transparent::pczt - Rust
    pub struct Input { /* private fields */ }
    Expand description

    Information about a transparent spend within a transaction.

    +Input in zcash_primitives::transaction::components::transparent::pczt - Rust
    pub struct Input { /* private fields */ }
    Expand description

    Information about a transparent spend within a transaction.

    This struct is for representing transparent spends in a partially-created transaction. If you have a fully-created transaction, use the regular TxIn struct.

    -

    Implementations§

    Source§

    impl Input

    Source

    pub fn parse( +

    Implementations§

    §

    impl Input

    pub fn parse( prevout_txid: [u8; 32], prevout_index: u32, sequence: Option<u32>, @@ -20,9 +20,9 @@ hash256_preimages: BTreeMap<[u8; 32], Vec<u8>>, proprietary: BTreeMap<String, Vec<u8>>, ) -> Result<Input, ParseError>

    Parses a PCZT input from its component parts.

    -
    Source§

    impl Input

    Source

    pub fn verify(&self) -> Result<(), VerifyError>

    Verifies the consistency of this transparent input.

    +
    §

    impl Input

    pub fn verify(&self) -> Result<(), VerifyError>

    Verifies the consistency of this transparent input.

    If the redeem_script field is set, its validity will be checked.

    -
    Source§

    impl Input

    Source

    pub fn sign<C, F>( +

    §

    impl Input

    pub fn sign<C, F>( &mut self, index: usize, calculate_sighash: F, @@ -30,63 +30,63 @@ secp: &Secp256k1<C>, ) -> Result<(), SignerError>
    where C: Signing, - F: FnOnce(SignableInput<'_>) -> [u8; 32],

    Signs the transparent spend with the given spend authorizing key.

    + F: FnOnce(SignableInput<'_>) -> [u8; 32],

    Signs the transparent spend with the given spend authorizing key.

    It is the caller’s responsibility to perform any semantic validity checks on the PCZT (for example, comfirming that the change amounts are correct) before calling this method.

    -
    Source§

    impl Input

    Source

    pub fn prevout_txid(&self) -> &TxId

    The ID of the previous transaction containing the transparent coin being spent by +

    §

    impl Input

    pub fn prevout_txid(&self) -> &TxId

    The ID of the previous transaction containing the transparent coin being spent by this input.

    -
    Source

    pub fn prevout_index(&self) -> &u32

    The index of the entry in the vout field of the previous transaction containing +

    pub fn prevout_index(&self) -> &u32

    The index of the entry in the vout field of the previous transaction containing the transparent coin being spent by this input.

    -
    Source

    pub fn sequence(&self) -> &Option<u32>

    The sequence number of this input.

    +

    pub fn sequence(&self) -> &Option<u32>

    The sequence number of this input.

    • This is set by the Constructor.
    • If omitted, the sequence number is assumed to be the final sequence number (0xffffffff).
    -
    Source

    pub fn required_time_lock_time(&self) -> &Option<u32>

    The minimum Unix timstamp that this input requires to be set as the transaction’s +

    pub fn required_time_lock_time(&self) -> &Option<u32>

    The minimum Unix timstamp that this input requires to be set as the transaction’s lock time.

    • This is set by the Constructor.
    • This must be greater than or equal to 500000000.
    -
    Source

    pub fn required_height_lock_time(&self) -> &Option<u32>

    The minimum block height that this input requires to be set as the transaction’s +

    pub fn required_height_lock_time(&self) -> &Option<u32>

    The minimum block height that this input requires to be set as the transaction’s lock time.

    • This is set by the Constructor.
    • This must be greater than 0 and less than 500000000.
    -
    Source

    pub fn script_sig(&self) -> &Option<Script>

    A satisfying witness for the script_pubkey of the input being spent.

    +

    pub fn script_sig(&self) -> &Option<Script>

    A satisfying witness for the script_pubkey of the input being spent.

    This is set by the Spend Finalizer.

    -
    Source

    pub fn value(&self) -> &Zatoshis

    The value of the input being spent.

    +

    pub fn value(&self) -> &Zatoshis

    The value of the input being spent.

    • This is set by the Constructor.
    • This is required by the IO Finalizer and Transaction Extractor, to derive the shielded sighash needed for computing the binding signatures.
    -
    Source

    pub fn script_pubkey(&self) -> &Script

    The script_pubkey of the input being spent.

    +

    pub fn script_pubkey(&self) -> &Script

    The script_pubkey of the input being spent.

    • This is set by the Constructor.
    • This is required by the IO Finalizer and Transaction Extractor, to derive the shielded sighash needed for computing the binding signatures.
    -
    Source

    pub fn redeem_script(&self) -> &Option<Script>

    The script required to spend this output, if it is P2SH.

    +

    pub fn redeem_script(&self) -> &Option<Script>

    The script required to spend this output, if it is P2SH.

    Set to None if this is a P2PKH output.

    -
    Source

    pub fn partial_signatures(&self) -> &BTreeMap<[u8; 33], Vec<u8>>

    A map from a pubkey to a signature created by it.

    +

    pub fn partial_signatures(&self) -> &BTreeMap<[u8; 33], Vec<u8>>

    A map from a pubkey to a signature created by it.

    • Each pubkey should appear in script_pubkey or redeem_script.
    • Each entry is set by a Signer, and should contain an ECDSA signature that is valid under the corresponding pubkey.
    • These are required by the Spend Finalizer to assemble script_sig.
    -
    Source

    pub fn sighash_type(&self) -> &SighashType

    The sighash type to be used for this input.

    +

    pub fn sighash_type(&self) -> &SighashType

    The sighash type to be used for this input.

    • Signers must use this sighash type to produce their signatures. Signers that cannot produce signatures for this sighash type must not provide a signature.
    • Spend Finalizers must fail to finalize inputs which have signatures that do not match this sighash type.
    -
    Source

    pub fn bip32_derivation(&self) -> &BTreeMap<[u8; 33], Bip32Derivation>

    A map from a pubkey to the BIP 32 derivation path at which its corresponding +

    pub fn bip32_derivation(&self) -> &BTreeMap<[u8; 33], Bip32Derivation>

    A map from a pubkey to the BIP 32 derivation path at which its corresponding spending key can be found.

    • The pubkeys should appear in script_pubkey or redeem_script.
    • @@ -95,28 +95,28 @@
    • It is not required that the map include entries for all of the used pubkeys. In particular, it is not possible to include entries for non-BIP-32 pubkeys.
    -
    Source

    pub fn ripemd160_preimages(&self) -> &BTreeMap<[u8; 20], Vec<u8>>

    Mappings of the form key = RIPEMD160(value).

    +

    pub fn ripemd160_preimages(&self) -> &BTreeMap<[u8; 20], Vec<u8>>

    Mappings of the form key = RIPEMD160(value).

    • These may be used by the Signer to inspect parts of script_pubkey or redeem_script.
    -
    Source

    pub fn sha256_preimages(&self) -> &BTreeMap<[u8; 32], Vec<u8>>

    Mappings of the form key = SHA256(value).

    +

    pub fn sha256_preimages(&self) -> &BTreeMap<[u8; 32], Vec<u8>>

    Mappings of the form key = SHA256(value).

    • These may be used by the Signer to inspect parts of script_pubkey or redeem_script.
    -
    Source

    pub fn hash160_preimages(&self) -> &BTreeMap<[u8; 20], Vec<u8>>

    Mappings of the form key = RIPEMD160(SHA256(value)).

    +

    pub fn hash160_preimages(&self) -> &BTreeMap<[u8; 20], Vec<u8>>

    Mappings of the form key = RIPEMD160(SHA256(value)).

    • These may be used by the Signer to inspect parts of script_pubkey or redeem_script.
    -
    Source

    pub fn hash256_preimages(&self) -> &BTreeMap<[u8; 32], Vec<u8>>

    Mappings of the form key = SHA256(SHA256(value)).

    +

    pub fn hash256_preimages(&self) -> &BTreeMap<[u8; 32], Vec<u8>>

    Mappings of the form key = SHA256(SHA256(value)).

    • These may be used by the Signer to inspect parts of script_pubkey or redeem_script.
    -
    Source

    pub fn proprietary(&self) -> &BTreeMap<String, Vec<u8>>

    Proprietary fields related to the transparent coin being spent.

    -

    Trait Implementations§

    Source§

    impl Debug for Input

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Input

    §

    impl RefUnwindSafe for Input

    §

    impl Send for Input

    §

    impl Sync for Input

    §

    impl Unpin for Input

    §

    impl UnwindSafe for Input

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    pub fn proprietary(&self) -> &BTreeMap<String, Vec<u8>>

    Proprietary fields related to the transparent coin being spent.

    +

    Trait Implementations§

    §

    impl Debug for Input

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Input

    §

    impl RefUnwindSafe for Input

    §

    impl Send for Input

    §

    impl Sync for Input

    §

    impl Unpin for Input

    §

    impl UnwindSafe for Input

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.InputUpdater.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.InputUpdater.html index 73637591f..313df13c1 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.InputUpdater.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.InputUpdater.html @@ -1,20 +1,20 @@ -InputUpdater in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Struct InputUpdater

    Source
    pub struct InputUpdater<'a>(/* private fields */);
    Expand description

    An updater for a transparent PCZT input.

    -

    Implementations§

    Source§

    impl<'a> InputUpdater<'a>

    Source

    pub fn set_redeem_script( +InputUpdater in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Struct InputUpdater

    pub struct InputUpdater<'a>(/* private fields */);
    Expand description

    An updater for a transparent PCZT input.

    +

    Implementations§

    §

    impl<'a> InputUpdater<'a>

    pub fn set_redeem_script( &mut self, redeem_script: Script, ) -> Result<(), UpdaterError>

    Sets the redeem script for this input.

    Returns an error if the input is not P2SH, or the given redeem_script does not match the input’s script_pubkey.

    -
    Source

    pub fn set_bip32_derivation( +

    pub fn set_bip32_derivation( &mut self, pubkey: [u8; 33], derivation: Bip32Derivation, )

    Sets the BIP 32 derivation path for the given pubkey.

    -
    Source

    pub fn set_ripemd160_preimage(&mut self, value: Vec<u8>)

    Stores the given value along with key = RIPEMD160(value).

    -
    Source

    pub fn set_sha256_preimage(&mut self, value: Vec<u8>)

    Stores the given value along with key = SHA256(value).

    -
    Source

    pub fn set_hash160_preimage(&mut self, value: Vec<u8>)

    Stores the given value along with key = RIPEMD160(SHA256(value)).

    -
    Source

    pub fn set_hash256_preimage(&mut self, value: Vec<u8>)

    Stores the given value along with key = SHA256(SHA256(value)).

    -
    Source

    pub fn set_proprietary(&mut self, key: String, value: Vec<u8>)

    Stores the given proprietary value at the given key.

    +

    pub fn set_ripemd160_preimage(&mut self, value: Vec<u8>)

    Stores the given value along with key = RIPEMD160(value).

    +

    pub fn set_sha256_preimage(&mut self, value: Vec<u8>)

    Stores the given value along with key = SHA256(value).

    +

    pub fn set_hash160_preimage(&mut self, value: Vec<u8>)

    Stores the given value along with key = RIPEMD160(SHA256(value)).

    +

    pub fn set_hash256_preimage(&mut self, value: Vec<u8>)

    Stores the given value along with key = SHA256(SHA256(value)).

    +

    pub fn set_proprietary(&mut self, key: String, value: Vec<u8>)

    Stores the given proprietary value at the given key.

    Auto Trait Implementations§

    §

    impl<'a> Freeze for InputUpdater<'a>

    §

    impl<'a> RefUnwindSafe for InputUpdater<'a>

    §

    impl<'a> Send for InputUpdater<'a>

    §

    impl<'a> Sync for InputUpdater<'a>

    §

    impl<'a> Unpin for InputUpdater<'a>

    §

    impl<'a> !UnwindSafe for InputUpdater<'a>

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Output.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Output.html index ad25f86a3..fa24e51ae 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Output.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Output.html @@ -1,8 +1,8 @@ -Output in zcash_primitives::transaction::components::transparent::pczt - Rust
    pub struct Output { /* private fields */ }
    Expand description

    Information about a transparent output within a transaction.

    +Output in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Struct Output

    pub struct Output { /* private fields */ }
    Expand description

    Information about a transparent output within a transaction.

    This struct is for representing transparent outputs in a partially-created transaction. If you have a fully-created transaction, use the regular TxOut struct.

    -

    Implementations§

    Source§

    impl Output

    Source

    pub fn parse( +

    Implementations§

    §

    impl Output

    pub fn parse( value: u64, script_pubkey: Vec<u8>, redeem_script: Option<Vec<u8>>, @@ -10,13 +10,13 @@ user_address: Option<String>, proprietary: BTreeMap<String, Vec<u8>>, ) -> Result<Output, ParseError>

    Parses a PCZT output from its component parts.

    -
    Source§

    impl Output

    Source

    pub fn verify(&self) -> Result<(), VerifyError>

    Verifies the consistency of this transparent output.

    +
    §

    impl Output

    pub fn verify(&self) -> Result<(), VerifyError>

    Verifies the consistency of this transparent output.

    If the redeem_script field is set, its validity will be checked.

    -
    Source§

    impl Output

    Source

    pub fn value(&self) -> &Zatoshis

    The value of the output.

    -
    Source

    pub fn script_pubkey(&self) -> &Script

    The script constraining how spending of this output must be authorized.

    -
    Source

    pub fn redeem_script(&self) -> &Option<Script>

    The script required to spend this output, if it is P2SH.

    +
    §

    impl Output

    pub fn value(&self) -> &Zatoshis

    The value of the output.

    +

    pub fn script_pubkey(&self) -> &Script

    The script constraining how spending of this output must be authorized.

    +

    pub fn redeem_script(&self) -> &Option<Script>

    The script required to spend this output, if it is P2SH.

    Set to None if this is a P2PKH output, or a P2SH with an unknown redeem script.

    -
    Source

    pub fn bip32_derivation(&self) -> &BTreeMap<[u8; 33], Bip32Derivation>

    A map from a pubkey to the BIP 32 derivation path at which its corresponding +

    pub fn bip32_derivation(&self) -> &BTreeMap<[u8; 33], Bip32Derivation>

    A map from a pubkey to the BIP 32 derivation path at which its corresponding spending key can be found.

    • The pubkeys should appear in script_pubkey or redeem_script.
    • @@ -25,14 +25,14 @@
    • It is not required that the map include entries for all of the used pubkeys. In particular, it is not possible to include entries for non-BIP-32 pubkeys.
    -
    Source

    pub fn user_address(&self) -> &Option<String>

    The user-facing address to which this output is being sent, if any.

    +

    pub fn user_address(&self) -> &Option<String>

    The user-facing address to which this output is being sent, if any.

    • This is set by an Updater.
    • Signers must parse this address (if present) and confirm that it contains recipient (either directly, or e.g. as a receiver within a Unified Address).
    -
    Source

    pub fn proprietary(&self) -> &BTreeMap<String, Vec<u8>>

    Proprietary fields related to the transparent coin being created.

    -

    Trait Implementations§

    Source§

    impl Debug for Output

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Output

    §

    impl RefUnwindSafe for Output

    §

    impl Send for Output

    §

    impl Sync for Output

    §

    impl Unpin for Output

    §

    impl UnwindSafe for Output

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +

    pub fn proprietary(&self) -> &BTreeMap<String, Vec<u8>>

    Proprietary fields related to the transparent coin being created.

    +

    Trait Implementations§

    §

    impl Debug for Output

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Output

    §

    impl RefUnwindSafe for Output

    §

    impl Send for Output

    §

    impl Sync for Output

    §

    impl Unpin for Output

    §

    impl UnwindSafe for Output

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.OutputUpdater.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.OutputUpdater.html index 809f75f39..32b61884d 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.OutputUpdater.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.OutputUpdater.html @@ -1,17 +1,17 @@ -OutputUpdater in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Struct OutputUpdater

    Source
    pub struct OutputUpdater<'a>(/* private fields */);
    Expand description

    An updater for a transparent PCZT output.

    -

    Implementations§

    Source§

    impl<'a> OutputUpdater<'a>

    Source

    pub fn set_redeem_script( +OutputUpdater in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Struct OutputUpdater

    pub struct OutputUpdater<'a>(/* private fields */);
    Expand description

    An updater for a transparent PCZT output.

    +

    Implementations§

    §

    impl<'a> OutputUpdater<'a>

    pub fn set_redeem_script( &mut self, redeem_script: Script, ) -> Result<(), UpdaterError>

    Sets the redeem script for this output.

    Returns an error if the output is not P2SH, or the given redeem_script does not match the output’s script_pubkey.

    -
    Source

    pub fn set_bip32_derivation( +

    pub fn set_bip32_derivation( &mut self, pubkey: [u8; 33], derivation: Bip32Derivation, )

    Sets the BIP 32 derivation path for the given pubkey.

    -
    Source

    pub fn set_user_address(&mut self, user_address: String)

    Sets the user-facing address that the new note is being sent to.

    -
    Source

    pub fn set_proprietary(&mut self, key: String, value: Vec<u8>)

    Stores the given proprietary value at the given key.

    +

    pub fn set_user_address(&mut self, user_address: String)

    Sets the user-facing address that the new note is being sent to.

    +

    pub fn set_proprietary(&mut self, key: String, value: Vec<u8>)

    Stores the given proprietary value at the given key.

    Auto Trait Implementations§

    §

    impl<'a> Freeze for OutputUpdater<'a>

    §

    impl<'a> RefUnwindSafe for OutputUpdater<'a>

    §

    impl<'a> Send for OutputUpdater<'a>

    §

    impl<'a> Sync for OutputUpdater<'a>

    §

    impl<'a> Unpin for OutputUpdater<'a>

    §

    impl<'a> !UnwindSafe for OutputUpdater<'a>

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Unbound.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Unbound.html index b9f6ffdef..8930c0c8a 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Unbound.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Unbound.html @@ -1,9 +1,9 @@ -Unbound in zcash_primitives::transaction::components::transparent::pczt - Rust
    pub struct Unbound(/* private fields */);
    Expand description

    Authorizing data for a transparent bundle in a transaction that is just missing +Unbound in zcash_primitives::transaction::components::transparent::pczt - Rust

    zcash_primitives::transaction::components::transparent::pczt

    Struct Unbound

    pub struct Unbound(/* private fields */);
    Expand description

    Authorizing data for a transparent bundle in a transaction that is just missing binding signatures.

    -

    Trait Implementations§

    Source§

    impl Authorization for Unbound

    Source§

    impl Debug for Unbound

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl TransparentAuthorizingContext for Unbound

    Source§

    fn input_amounts(&self) -> Vec<Zatoshis>

    Returns the list of all transparent input amounts, provided +

    Trait Implementations§

    §

    impl Authorization for Unbound

    §

    impl Debug for Unbound

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl TransparentAuthorizingContext for Unbound

    §

    fn input_amounts(&self) -> Vec<Zatoshis>

    Returns the list of all transparent input amounts, provided so that wallets can commit to the transparent input breakdown without requiring the full data of the previous transactions -providing these inputs.
    Source§

    fn input_scriptpubkeys(&self) -> Vec<Script>

    Returns the list of all transparent input scriptPubKeys, provided +providing these inputs.
    §

    fn input_scriptpubkeys(&self) -> Vec<Script>

    Returns the list of all transparent input scriptPubKeys, provided so that wallets can commit to the transparent input breakdown without requiring the full data of the previous transactions providing these inputs.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Updater.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Updater.html index 7899d74f4..5fa4fe9e2 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Updater.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/pczt/struct.Updater.html @@ -1,13 +1,13 @@ -Updater in zcash_primitives::transaction::components::transparent::pczt - Rust
    pub struct Updater<'a>(/* private fields */);
    Expand description

    An updater for a transparent PCZT bundle.

    -

    Implementations§

    Source§

    impl<'a> Updater<'a>

    Source

    pub fn bundle(&self) -> &Bundle

    Provides read access to the bundle being updated.

    -
    Source

    pub fn update_input_with<F>( +Updater in zcash_primitives::transaction::components::transparent::pczt - Rust
    zcash_primitives::transaction::components::transparent::pczt

    Struct Updater

    pub struct Updater<'a>(/* private fields */);
    Expand description

    An updater for a transparent PCZT bundle.

    +

    Implementations§

    §

    impl<'a> Updater<'a>

    pub fn bundle(&self) -> &Bundle

    Provides read access to the bundle being updated.

    +

    pub fn update_input_with<F>( &mut self, index: usize, f: F, ) -> Result<(), UpdaterError>

    Updates the input at the given index with information provided in the given closure.

    -
    Source

    pub fn update_output_with<F>( +

    pub fn update_output_with<F>( &mut self, index: usize, f: F, diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.Authorized.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.Authorized.html index 398b665e8..8cd75dbf6 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.Authorized.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.Authorized.html @@ -1,9 +1,9 @@ -Authorized in zcash_primitives::transaction::components::transparent - Rust
    zcash_primitives::transaction::components::transparent

    Struct Authorized

    Source
    pub struct Authorized;

    Trait Implementations§

    Source§

    impl Authorization for Authorized

    Source§

    impl Clone for Authorized

    Source§

    fn clone(&self) -> Authorized

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Authorized

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl MapAuth<Authorized, Authorized> for ()

    The identity map.

    -
    Source§

    fn map_script_sig( +Authorized in zcash_primitives::transaction::components::transparent - Rust
    zcash_primitives::transaction::components::transparent

    Struct Authorized

    pub struct Authorized;

    Trait Implementations§

    §

    impl Authorization for Authorized

    §

    impl Clone for Authorized

    §

    fn clone(&self) -> Authorized

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Authorized

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MapAuth<Authorized, Authorized> for ()

    The identity map.

    +
    Source§

    impl PartialEq for Authorized

    Source§

    fn eq(&self, other: &Authorized) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for Authorized

    Source§

    impl Eq for Authorized

    Source§

    impl StructuralPartialEq for Authorized

    Auto Trait Implementations§

    Blanket Implementations§

    §

    impl PartialEq for Authorized

    §

    fn eq(&self, other: &Authorized) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl Copy for Authorized

    §

    impl Eq for Authorized

    §

    impl StructuralPartialEq for Authorized

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.Bundle.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.Bundle.html index b92811aa9..0fc6d3a0d 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.Bundle.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.Bundle.html @@ -1,33 +1,33 @@ -Bundle in zcash_primitives::transaction::components::transparent - Rust
    pub struct Bundle<A>
    where +Bundle in zcash_primitives::transaction::components::transparent - Rust
    zcash_primitives::transaction::components::transparent

    Struct Bundle

    pub struct Bundle<A>
    where A: Authorization,
    { pub vin: Vec<TxIn<A>>, pub vout: Vec<TxOut>, pub authorization: A, -}

    Fields§

    §vin: Vec<TxIn<A>>§vout: Vec<TxOut>§authorization: A

    Implementations§

    Fields§

    §vin: Vec<TxIn<A>>§vout: Vec<TxOut>§authorization: A

    Implementations§

    §

    impl Bundle<Unauthorized>

    pub fn apply_signatures<F>( self, calculate_sighash: F, signing_set: &TransparentSigningSet, ) -> Result<Bundle<Authorized>, Error>
    where - F: Fn(SignableInput<'_>) -> [u8; 32],

    Source§

    impl<A> Bundle<A>
    where - A: Authorization,

    Source

    pub fn is_coinbase(&self) -> bool

    Returns true if this bundle matches the definition of a coinbase transaction.

    + F: Fn(SignableInput<'_>) -> [u8; 32],

    §

    impl<A> Bundle<A>
    where + A: Authorization,

    pub fn is_coinbase(&self) -> bool

    Returns true if this bundle matches the definition of a coinbase transaction.

    Note that this is defined purely in terms of the transparent transaction part. The consensus rules enforce additional rules on the shielded parts (namely, that they don’t have any inputs) of transactions with a transparent part that matches this definition.

    -
    Source

    pub fn map_authorization<B, F>(self, f: F) -> Bundle<B>
    where +

    pub fn map_authorization<B, F>(self, f: F) -> Bundle<B>
    where B: Authorization, - F: MapAuth<A, B>,

    Source

    pub fn value_balance<E, F>(&self, get_prevout_value: F) -> Result<ZatBalance, E>
    where + F: MapAuth<A, B>,

    pub fn value_balance<E, F>(&self, get_prevout_value: F) -> Result<ZatBalance, E>

    The amount of value added to or removed from the transparent pool by the action of this bundle. A positive value represents that the containing transaction has funds being transferred out of the transparent pool into shielded pools or to fees; a negative value means that the containing transaction has funds being transferred into the transparent pool from the shielded pools.

    -

    Trait Implementations§

    Source§

    impl<A> Clone for Bundle<A>
    where - A: Clone + Authorization,

    Source§

    fn clone(&self) -> Bundle<A>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<A> Debug for Bundle<A>
    where - A: Debug + Authorization,

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl<A> PartialEq for Bundle<A>
    where - A: PartialEq + Authorization,

    Source§

    fn eq(&self, other: &Bundle<A>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<A> StructuralPartialEq for Bundle<A>
    where +

    Trait Implementations§

    §

    impl<A> Clone for Bundle<A>
    where + A: Clone + Authorization,

    §

    fn clone(&self) -> Bundle<A>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<A> Debug for Bundle<A>
    where + A: Debug + Authorization,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<A> PartialEq for Bundle<A>
    where + A: PartialEq + Authorization,

    §

    fn eq(&self, other: &Bundle<A>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<A> StructuralPartialEq for Bundle<A>
    where A: Authorization,

    Auto Trait Implementations§

    §

    impl<A> Freeze for Bundle<A>
    where A: Freeze,

    §

    impl<A> RefUnwindSafe for Bundle<A>
    where A: RefUnwindSafe, diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.EffectsOnly.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.EffectsOnly.html index 7ccd60d0c..2b7e021be 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.EffectsOnly.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.EffectsOnly.html @@ -1,9 +1,9 @@ -EffectsOnly in zcash_primitives::transaction::components::transparent - Rust
    zcash_primitives::transaction::components::transparent

    Struct EffectsOnly

    Source
    pub struct EffectsOnly { /* private fields */ }
    Expand description

    Marker type for a bundle that contains no authorizing data, and the necessary input +EffectsOnly in zcash_primitives::transaction::components::transparent - Rust

    zcash_primitives::transaction::components::transparent

    Struct EffectsOnly

    pub struct EffectsOnly { /* private fields */ }
    Expand description

    Marker type for a bundle that contains no authorizing data, and the necessary input information for creating sighashes.

    -

    Trait Implementations§

    Source§

    impl Authorization for EffectsOnly

    Source§

    impl Debug for EffectsOnly

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl TransparentAuthorizingContext for EffectsOnly

    Source§

    fn input_amounts(&self) -> Vec<Zatoshis>

    Returns the list of all transparent input amounts, provided +

    Trait Implementations§

    §

    impl Authorization for EffectsOnly

    §

    impl Debug for EffectsOnly

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl TransparentAuthorizingContext for EffectsOnly

    §

    fn input_amounts(&self) -> Vec<Zatoshis>

    Returns the list of all transparent input amounts, provided so that wallets can commit to the transparent input breakdown without requiring the full data of the previous transactions -providing these inputs.
    Source§

    fn input_scriptpubkeys(&self) -> Vec<Script>

    Returns the list of all transparent input scriptPubKeys, provided +providing these inputs.
    §

    fn input_scriptpubkeys(&self) -> Vec<Script>

    Returns the list of all transparent input scriptPubKeys, provided so that wallets can commit to the transparent input breakdown without requiring the full data of the previous transactions providing these inputs.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.OutPoint.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.OutPoint.html index 0fe447c48..b632d0e1f 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.OutPoint.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.OutPoint.html @@ -1,19 +1,19 @@ -OutPoint in zcash_primitives::transaction::components::transparent - Rust
    zcash_primitives::transaction::components::transparent

    Struct OutPoint

    Source
    pub struct OutPoint { /* private fields */ }

    Implementations§

    Source§

    impl OutPoint

    Source

    pub fn new(hash: [u8; 32], n: u32) -> OutPoint

    Constructs an OutPoint for the output at index n in the transaction +OutPoint in zcash_primitives::transaction::components::transparent - Rust

    zcash_primitives::transaction::components::transparent

    Struct OutPoint

    pub struct OutPoint { /* private fields */ }

    Implementations§

    §

    impl OutPoint

    pub fn new(hash: [u8; 32], n: u32) -> OutPoint

    Constructs an OutPoint for the output at index n in the transaction with txid hash.

    -
    Source

    pub const fn fake() -> OutPoint

    Available on crate feature test-dependencies only.

    Constructs a fake OutPoint for use in tests.

    -
    Source

    pub fn read<R>(reader: R) -> Result<OutPoint, Error>
    where - R: Read,

    Source

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where - W: Write,

    Source

    pub fn n(&self) -> u32

    Returns the output index of this OutPoint.

    -
    Source

    pub fn hash(&self) -> &[u8; 32]

    Returns the byte representation of the txid of the transaction containing this OutPoint.

    -
    Source

    pub fn txid(&self) -> &TxId

    Returns the txid of the transaction containing this OutPoint.

    -

    Trait Implementations§

    Source§

    impl Clone for OutPoint

    Source§

    fn clone(&self) -> OutPoint

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for OutPoint

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Ord for OutPoint

    Source§

    fn cmp(&self, other: &OutPoint) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where +

    pub const fn fake() -> OutPoint

    Available on crate feature test-dependencies only.

    Constructs a fake OutPoint for use in tests.

    +

    pub fn read<R>(reader: R) -> Result<OutPoint, Error>
    where + R: Read,

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where + W: Write,

    pub fn n(&self) -> u32

    Returns the output index of this OutPoint.

    +

    pub fn hash(&self) -> &[u8; 32]

    Returns the byte representation of the txid of the transaction containing this OutPoint.

    +

    pub fn txid(&self) -> &TxId

    Returns the txid of the transaction containing this OutPoint.

    +

    Trait Implementations§

    §

    impl Clone for OutPoint

    §

    fn clone(&self) -> OutPoint

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for OutPoint

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Ord for OutPoint

    §

    fn cmp(&self, other: &OutPoint) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for OutPoint

    Source§

    fn eq(&self, other: &OutPoint) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for OutPoint

    Source§

    fn partial_cmp(&self, other: &OutPoint) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    §

    impl PartialEq for OutPoint

    §

    fn eq(&self, other: &OutPoint) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl PartialOrd for OutPoint

    §

    fn partial_cmp(&self, other: &OutPoint) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Eq for OutPoint

    Source§

    impl StructuralPartialEq for OutPoint

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +the >= operator. Read more

    §

    impl Eq for OutPoint

    §

    impl StructuralPartialEq for OutPoint

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.TxIn.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.TxIn.html index abf48cb5a..732aed6d0 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.TxIn.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.TxIn.html @@ -1,18 +1,18 @@ -TxIn in zcash_primitives::transaction::components::transparent - Rust
    pub struct TxIn<A>
    where +TxIn in zcash_primitives::transaction::components::transparent - Rust
    pub struct TxIn<A>
    where A: Authorization,
    { pub prevout: OutPoint, pub script_sig: <A as Authorization>::ScriptSig, pub sequence: u32, -}

    Fields§

    §prevout: OutPoint§script_sig: <A as Authorization>::ScriptSig§sequence: u32

    Implementations§

    Source§

    impl TxIn<Unauthorized>

    Source

    pub fn new(prevout: OutPoint) -> TxIn<Unauthorized>

    Available on crate feature transparent-inputs only.
    Source§

    impl TxIn<Authorized>

    Source

    pub fn read<R>(reader: &mut R) -> Result<TxIn<Authorized>, Error>
    where - R: Read,

    Source

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where - W: Write,

    Trait Implementations§

    Source§

    impl<A> Clone for TxIn<A>
    where +}

    Fields§

    §prevout: OutPoint§script_sig: <A as Authorization>::ScriptSig§sequence: u32

    Implementations§

    §

    impl TxIn<Unauthorized>

    pub fn new(prevout: OutPoint) -> TxIn<Unauthorized>

    Available on crate feature transparent-inputs only.
    §

    impl TxIn<Authorized>

    pub fn read<R>(reader: &mut R) -> Result<TxIn<Authorized>, Error>
    where + R: Read,

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where + W: Write,

    Trait Implementations§

    §

    impl<A> Clone for TxIn<A>

    Source§

    fn clone(&self) -> TxIn<A>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<A> Debug for TxIn<A>
    where + <A as Authorization>::ScriptSig: Clone,

    §

    fn clone(&self) -> TxIn<A>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<A> Debug for TxIn<A>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl<A> PartialEq for TxIn<A>
    where + <A as Authorization>::ScriptSig: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<A> PartialEq for TxIn<A>

    Source§

    fn eq(&self, other: &TxIn<A>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl<A> StructuralPartialEq for TxIn<A>

    §

    fn eq(&self, other: &TxIn<A>) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl<A> StructuralPartialEq for TxIn<A>
    where A: Authorization,

    Auto Trait Implementations§

    §

    impl<A> Freeze for TxIn<A>

    §

    impl<A> RefUnwindSafe for TxIn<A>

    §

    impl<A> Send for TxIn<A>
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.TxOut.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.TxOut.html index 55707b629..59f5077f1 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.TxOut.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/struct.TxOut.html @@ -1,11 +1,11 @@ -TxOut in zcash_primitives::transaction::components::transparent - Rust
    pub struct TxOut {
    +TxOut in zcash_primitives::transaction::components::transparent - Rust
    zcash_primitives::transaction::components::transparent

    Struct TxOut

    pub struct TxOut {
         pub value: Zatoshis,
         pub script_pubkey: Script,
    -}

    Fields§

    §value: Zatoshis§script_pubkey: Script

    Implementations§

    Source§

    impl TxOut

    Source

    pub fn read<R>(reader: &mut R) -> Result<TxOut, Error>
    where - R: Read,

    Source

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where - W: Write,

    Source

    pub fn recipient_address(&self) -> Option<TransparentAddress>

    Returns the address to which the TxOut was sent, if this is a valid P2SH or P2PKH output.

    -

    Trait Implementations§

    Source§

    impl Clone for TxOut

    Source§

    fn clone(&self) -> TxOut

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for TxOut

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl OutputView for TxOut

    Source§

    fn value(&self) -> NonNegativeAmount

    Returns the value of the output being created.
    Source§

    fn script_pubkey(&self) -> &Script

    Returns the script corresponding to the newly created output.
    Source§

    fn serialized_size(&self) -> usize

    Returns the serialized size of the txout.
    Source§

    impl PartialEq for TxOut

    Source§

    fn eq(&self, other: &TxOut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Eq for TxOut

    Source§

    impl StructuralPartialEq for TxOut

    Auto Trait Implementations§

    §

    impl Freeze for TxOut

    §

    impl RefUnwindSafe for TxOut

    §

    impl Send for TxOut

    §

    impl Sync for TxOut

    §

    impl Unpin for TxOut

    §

    impl UnwindSafe for TxOut

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +}

    Fields§

    §value: Zatoshis§script_pubkey: Script

    Implementations§

    §

    impl TxOut

    pub fn read<R>(reader: &mut R) -> Result<TxOut, Error>
    where + R: Read,

    pub fn write<W>(&self, writer: W) -> Result<(), Error>
    where + W: Write,

    pub fn recipient_address(&self) -> Option<TransparentAddress>

    Returns the address to which the TxOut was sent, if this is a valid P2SH or P2PKH output.

    +

    Trait Implementations§

    §

    impl Clone for TxOut

    §

    fn clone(&self) -> TxOut

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for TxOut

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl OutputView for TxOut

    Source§

    fn value(&self) -> NonNegativeAmount

    Returns the value of the output being created.
    Source§

    fn script_pubkey(&self) -> &Script

    Returns the script corresponding to the newly created output.
    Source§

    fn serialized_size(&self) -> usize

    Returns the serialized size of the txout.
    §

    impl PartialEq for TxOut

    §

    fn eq(&self, other: &TxOut) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl Eq for TxOut

    §

    impl StructuralPartialEq for TxOut

    Auto Trait Implementations§

    §

    impl Freeze for TxOut

    §

    impl RefUnwindSafe for TxOut

    §

    impl Send for TxOut

    §

    impl Sync for TxOut

    §

    impl Unpin for TxOut

    §

    impl UnwindSafe for TxOut

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/constant.VALID_OPCODES.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/constant.VALID_OPCODES.html index 982c1cbd8..1682e6b27 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/constant.VALID_OPCODES.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/constant.VALID_OPCODES.html @@ -1 +1 @@ -VALID_OPCODES in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Constant VALID_OPCODES

    Source
    pub const VALID_OPCODES: [u8; 8];
    Available on crate feature test-dependencies only.
    \ No newline at end of file +VALID_OPCODES in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Constant VALID_OPCODES

    pub const VALID_OPCODES: [u8; 8];
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_bundle.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_bundle.html index f95cc192a..4ece992c9 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_bundle.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_bundle.html @@ -1 +1 @@ -arb_bundle in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_bundle

    Source
    pub fn arb_bundle() -> impl Strategy<Value = Option<Bundle<Authorized>>>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_bundle in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_bundle

    pub fn arb_bundle() -> impl Strategy<Value = Option<Bundle<Authorized>>>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_outpoint.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_outpoint.html index fb7b9a417..0692e9980 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_outpoint.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_outpoint.html @@ -1 +1 @@ -arb_outpoint in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_outpoint

    Source
    pub fn arb_outpoint() -> impl Strategy<Value = OutPoint>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_outpoint in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_outpoint

    pub fn arb_outpoint() -> impl Strategy<Value = OutPoint>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_script.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_script.html index 02588121c..3687b427c 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_script.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_script.html @@ -1 +1 @@ -arb_script in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_script

    Source
    pub fn arb_script() -> impl Strategy<Value = Script>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_script in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_script

    pub fn arb_script() -> impl Strategy<Value = Script>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_txin.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_txin.html index adfda70f9..65167c1a5 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_txin.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_txin.html @@ -1 +1 @@ -arb_txin in zcash_primitives::transaction::components::transparent::testing - Rust
    pub fn arb_txin() -> impl Strategy<Value = TxIn<Authorized>>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_txin in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_txin

    pub fn arb_txin() -> impl Strategy<Value = TxIn<Authorized>>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_txout.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_txout.html index 41a5a47b4..a72f3f391 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_txout.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/fn.arb_txout.html @@ -1 +1 @@ -arb_txout in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_txout

    Source
    pub fn arb_txout() -> impl Strategy<Value = TxOut>
    Available on crate feature test-dependencies only.
    \ No newline at end of file +arb_txout in zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent::testing

    Function arb_txout

    pub fn arb_txout() -> impl Strategy<Value = TxOut>
    Available on crate feature test-dependencies only.
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/index.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/index.html index 05ddffb1d..d27c3d180 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/index.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/testing/index.html @@ -1 +1 @@ -zcash_primitives::transaction::components::transparent::testing - Rust
    Available on crate feature test-dependencies only.

    Constants§

    Functions§

    \ No newline at end of file +zcash_primitives::transaction::components::transparent::testing - Rust
    zcash_primitives::transaction::components::transparent

    Module testing

    Available on crate feature test-dependencies only.

    Constants§

    Functions§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/trait.Authorization.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/trait.Authorization.html index 5b6822e95..999568c4d 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/trait.Authorization.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/trait.Authorization.html @@ -1,3 +1,3 @@ -Authorization in zcash_primitives::transaction::components::transparent - Rust
    zcash_primitives::transaction::components::transparent

    Trait Authorization

    Source
    pub trait Authorization: Debug {
    +Authorization in zcash_primitives::transaction::components::transparent - Rust
    \ No newline at end of file +}

    Required Associated Types§

    Implementors§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/components/transparent/trait.MapAuth.html b/rustdoc/latest/zcash_primitives/transaction/components/transparent/trait.MapAuth.html index 79ca73fd6..cc4c193d4 100644 --- a/rustdoc/latest/zcash_primitives/transaction/components/transparent/trait.MapAuth.html +++ b/rustdoc/latest/zcash_primitives/transaction/components/transparent/trait.MapAuth.html @@ -1,4 +1,4 @@ -MapAuth in zcash_primitives::transaction::components::transparent - Rust
    pub trait MapAuth<A, B>
    where +MapAuth in zcash_primitives::transaction::components::transparent - Rust
    zcash_primitives::transaction::components::transparent

    Trait MapAuth

    pub trait MapAuth<A, B>{
         // Required methods
    @@ -7,11 +7,11 @@
             s: <A as Authorization>::ScriptSig,
         ) -> <B as Authorization>::ScriptSig;
         fn map_authorization(&self, s: A) -> B;
    -}

    Required Methods§

    Required Methods§

    fn map_script_sig( &self, s: <A as Authorization>::ScriptSig, -) -> <B as Authorization>::ScriptSig

    Source

    fn map_authorization(&self, s: A) -> B

    Implementations on Foreign Types§

    Source§

    impl MapAuth<Authorized, Authorized> for ()

    The identity map.

    -
    Source§

    fn map_script_sig( +) -> <B as Authorization>::ScriptSig

    fn map_authorization(&self, s: A) -> B

    Implementations on Foreign Types§

    §

    impl MapAuth<Authorized, Authorized> for ()

    The identity map.

    +

    Implementors§

    \ No newline at end of file +) -> <Authorized as Authorization>::ScriptSig

    §

    fn map_authorization(&self, s: Authorized) -> Authorized

    Implementors§

    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_ALL.html b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_ALL.html index fc80db467..3884e2dcd 100644 --- a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_ALL.html +++ b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_ALL.html @@ -1 +1 @@ -SIGHASH_ALL in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_ALL

    Source
    pub const SIGHASH_ALL: u8 = 0x01; // 1u8
    \ No newline at end of file +SIGHASH_ALL in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_ALL

    pub const SIGHASH_ALL: u8 = 0x01; // 1u8
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_ANYONECANPAY.html b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_ANYONECANPAY.html index 732f4d4a9..ad9931387 100644 --- a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_ANYONECANPAY.html +++ b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_ANYONECANPAY.html @@ -1 +1 @@ -SIGHASH_ANYONECANPAY in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_ANYONECANPAY

    Source
    pub const SIGHASH_ANYONECANPAY: u8 = 0x80; // 128u8
    \ No newline at end of file +SIGHASH_ANYONECANPAY in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_ANYONECANPAY

    pub const SIGHASH_ANYONECANPAY: u8 = 0x80; // 128u8
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_MASK.html b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_MASK.html index 68563b41d..3ea6a5ad3 100644 --- a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_MASK.html +++ b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_MASK.html @@ -1 +1 @@ -SIGHASH_MASK in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_MASK

    Source
    pub const SIGHASH_MASK: u8 = 0x1f; // 31u8
    \ No newline at end of file +SIGHASH_MASK in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_MASK

    pub const SIGHASH_MASK: u8 = 0x1f; // 31u8
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_NONE.html b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_NONE.html index 0ebcc1584..95ddc85c3 100644 --- a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_NONE.html +++ b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_NONE.html @@ -1 +1 @@ -SIGHASH_NONE in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_NONE

    Source
    pub const SIGHASH_NONE: u8 = 0x02; // 2u8
    \ No newline at end of file +SIGHASH_NONE in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_NONE

    pub const SIGHASH_NONE: u8 = 0x02; // 2u8
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_SINGLE.html b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_SINGLE.html index fdd0db1b4..da054c711 100644 --- a/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_SINGLE.html +++ b/rustdoc/latest/zcash_primitives/transaction/sighash/constant.SIGHASH_SINGLE.html @@ -1 +1 @@ -SIGHASH_SINGLE in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_SINGLE

    Source
    pub const SIGHASH_SINGLE: u8 = 0x03; // 3u8
    \ No newline at end of file +SIGHASH_SINGLE in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Constant SIGHASH_SINGLE

    pub const SIGHASH_SINGLE: u8 = 0x03; // 3u8
    \ No newline at end of file diff --git a/rustdoc/latest/zcash_primitives/transaction/sighash/enum.SignableInput.html b/rustdoc/latest/zcash_primitives/transaction/sighash/enum.SignableInput.html index e0bd3cf98..857933578 100644 --- a/rustdoc/latest/zcash_primitives/transaction/sighash/enum.SignableInput.html +++ b/rustdoc/latest/zcash_primitives/transaction/sighash/enum.SignableInput.html @@ -1,7 +1,7 @@ SignableInput in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Enum SignableInput

    Source
    pub enum SignableInput<'a> {
         Shielded,
    -    Transparent(SignableInput<'a>),
    -}

    Variants§

    §

    Shielded

    §

    Transparent(SignableInput<'a>)

    Implementations§

    Source§

    impl<'a> SignableInput<'a>

    Source

    pub fn hash_type(&self) -> u8

    Auto Trait Implementations§

    §

    impl<'a> Freeze for SignableInput<'a>

    §

    impl<'a> RefUnwindSafe for SignableInput<'a>

    §

    impl<'a> Send for SignableInput<'a>

    §

    impl<'a> Sync for SignableInput<'a>

    §

    impl<'a> Unpin for SignableInput<'a>

    §

    impl<'a> UnwindSafe for SignableInput<'a>

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where + Transparent(SignableInput<'a>), +}

    Variants§

    §

    Shielded

    §

    Transparent(SignableInput<'a>)

    Implementations§

    Source§

    impl<'a> SignableInput<'a>

    Source

    pub fn hash_type(&self) -> u8

    Auto Trait Implementations§

    §

    impl<'a> Freeze for SignableInput<'a>

    §

    impl<'a> RefUnwindSafe for SignableInput<'a>

    §

    impl<'a> Send for SignableInput<'a>

    §

    impl<'a> Sync for SignableInput<'a>

    §

    impl<'a> Unpin for SignableInput<'a>

    §

    impl<'a> UnwindSafe for SignableInput<'a>

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> Conv for T

    §

    fn conv<T>(self) -> T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/sighash/struct.SighashType.html b/rustdoc/latest/zcash_primitives/transaction/sighash/struct.SighashType.html index a4aa13984..2ed9ec911 100644 --- a/rustdoc/latest/zcash_primitives/transaction/sighash/struct.SighashType.html +++ b/rustdoc/latest/zcash_primitives/transaction/sighash/struct.SighashType.html @@ -1,8 +1,8 @@ -SighashType in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Struct SighashType

    Source
    pub struct SighashType(/* private fields */);
    Expand description

    A ZIP 244 sighash type.

    -

    Implementations§

    Source§

    impl SighashType

    Source

    pub const ALL: SighashType = _

    Source

    pub const NONE: SighashType = _

    Source

    pub const SINGLE: SighashType = _

    Source

    pub const ALL_ANYONECANPAY: SighashType = _

    Source

    pub const NONE_ANYONECANPAY: SighashType = _

    Source

    pub const SINGLE_ANYONECANPAY: SighashType = _

    Source

    pub fn parse(hash_type: u8) -> Option<SighashType>

    Parses the given hash_type using the ZIP 244 rules.

    -
    Source

    pub fn encode(&self) -> u8

    Encodes this SighashType using the ZIP 244 rules.

    -

    Trait Implementations§

    Source§

    impl Clone for SighashType

    Source§

    fn clone(&self) -> SighashType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for SighashType

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for SighashType

    Source§

    fn eq(&self, other: &SighashType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    Source§

    impl Copy for SighashType

    Source§

    impl Eq for SighashType

    Source§

    impl StructuralPartialEq for SighashType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where +SighashType in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Struct SighashType

    pub struct SighashType(/* private fields */);
    Expand description

    A ZIP 244 sighash type.

    +

    Implementations§

    §

    impl SighashType

    pub const ALL: SighashType = _

    pub const NONE: SighashType = _

    pub const SINGLE: SighashType = _

    pub const ALL_ANYONECANPAY: SighashType = _

    pub const NONE_ANYONECANPAY: SighashType = _

    pub const SINGLE_ANYONECANPAY: SighashType = _

    pub fn parse(hash_type: u8) -> Option<SighashType>

    Parses the given hash_type using the ZIP 244 rules.

    +

    pub fn encode(&self) -> u8

    Encodes this SighashType using the ZIP 244 rules.

    +

    Trait Implementations§

    §

    impl Clone for SighashType

    §

    fn clone(&self) -> SighashType

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for SighashType

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for SighashType

    §

    fn eq(&self, other: &SighashType) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    §

    impl Copy for SighashType

    §

    impl Eq for SighashType

    §

    impl StructuralPartialEq for SighashType

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    Source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    Source§

    impl<T> Borrow<T> for T
    where T: ?Sized,

    Source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    Source§

    impl<T> BorrowMut<T> for T
    where T: ?Sized,

    Source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    Source§

    impl<T> CloneToUninit for T
    where diff --git a/rustdoc/latest/zcash_primitives/transaction/sighash/trait.TransparentAuthorizingContext.html b/rustdoc/latest/zcash_primitives/transaction/sighash/trait.TransparentAuthorizingContext.html index 1f527aa59..cbc85b7a4 100644 --- a/rustdoc/latest/zcash_primitives/transaction/sighash/trait.TransparentAuthorizingContext.html +++ b/rustdoc/latest/zcash_primitives/transaction/sighash/trait.TransparentAuthorizingContext.html @@ -1,15 +1,15 @@ -TransparentAuthorizingContext in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Trait TransparentAuthorizingContext

    Source
    pub trait TransparentAuthorizingContext: Authorization {
    +TransparentAuthorizingContext in zcash_primitives::transaction::sighash - Rust
    zcash_primitives::transaction::sighash

    Trait TransparentAuthorizingContext

    pub trait TransparentAuthorizingContext: Authorization {
         // Required methods
         fn input_amounts(&self) -> Vec<Zatoshis>;
         fn input_scriptpubkeys(&self) -> Vec<Script>;
     }
    Expand description

    Additional context that is needed to compute signature hashes for transactions that include transparent inputs or outputs.

    -

    Required Methods§

    Source

    fn input_amounts(&self) -> Vec<Zatoshis>

    Returns the list of all transparent input amounts, provided +

    Required Methods§

    fn input_amounts(&self) -> Vec<Zatoshis>

    Returns the list of all transparent input amounts, provided so that wallets can commit to the transparent input breakdown without requiring the full data of the previous transactions providing these inputs.

    -
    Source

    fn input_scriptpubkeys(&self) -> Vec<Script>

    Returns the list of all transparent input scriptPubKeys, provided +

    fn input_scriptpubkeys(&self) -> Vec<Script>

    Returns the list of all transparent input scriptPubKeys, provided so that wallets can commit to the transparent input breakdown without requiring the full data of the previous transactions providing these inputs.

    -

    Implementors§

    \ No newline at end of file +

    Implementors§

    \ No newline at end of file