pub trait Verify: Sized {
type Verified;
type Error: Error + Send + Sync + 'static;
// Required method
fn verify(self) -> Result<Self::Verified, Self::Error>;
}Expand description
Checks domain invariants and constructs the verified type using ordinary Rust.
Verification errors belong to the domain. Cross-field checks need not correspond to a
single wire field.
Types that require external context can implement VerifyWith instead.
Boxes delegate to the contained verifier, preserving its error type and boxing the output.
Generated decoded records retain collections in crate::OptionalField,
crate::RepeatedField, or crate::MapField. Calling verify() on these fields verifies
their elements with the generated field name and index or key context. These helpers return
ConversionError, preserving the original source, and stop at the first error.
For element verifiers whose error is core::convert::Infallible, the wrappers also provide
verify_infallible(), returning the verified collection directly.
Collection-wide invariants remain the responsibility of the containing verifier. Use the
wrappers’ map() or try_map() methods for explicit element conversions; try_map() retains
field, index, and key context. Use into_inner() for custom collection-wide processing.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Verify for DecodedAccountFile
impl Verify for DecodedAccountFile
type Verified = AccountFile
type Error = VerificationError
fn verify( self, ) -> Result<<DecodedAccountFile as Verify>::Verified, <DecodedAccountFile as Verify>::Error>
Source§impl Verify for DecodedAccountFileV1
impl Verify for DecodedAccountFileV1
type Verified = AccountFile
type Error = VerificationError
fn verify( self, ) -> Result<<DecodedAccountFileV1 as Verify>::Verified, <DecodedAccountFileV1 as Verify>::Error>
Source§impl Verify for DecodedAuthSecretKey
Returns the canonical secret key; it is not checked against any account.
impl Verify for DecodedAuthSecretKey
Returns the canonical secret key; it is not checked against any account.
Source§impl Verify for DecodedCommittedNote
impl Verify for DecodedCommittedNote
Source§impl Verify for DecodedExpectedNote
impl Verify for DecodedExpectedNote
Source§impl Verify for DecodedNoteFile
impl Verify for DecodedNoteFile
Source§impl Verify for DecodedNoteFileV1
impl Verify for DecodedNoteFileV1
Source§impl Verify for DecodedNoteSyncHint
impl Verify for DecodedNoteSyncHint
Implementors§
Source§impl Verify for DecodedAccount
impl Verify for DecodedAccount
Source§impl Verify for DecodedAccountCode
impl Verify for DecodedAccountCode
type Verified = AccountCode
type Error = VerificationError
Source§impl Verify for DecodedAccountCodePatch
impl Verify for DecodedAccountCodePatch
type Verified = AccountCodePatch
type Error = VerificationError
Source§impl Verify for DecodedAccountCodeUpgrade
impl Verify for DecodedAccountCodeUpgrade
type Verified = AccountCodeUpgrade
type Error = VerificationError
Source§impl Verify for DecodedAccountDetailRequest
impl Verify for DecodedAccountDetailRequest
type Verified = AccountDetailRequest
type Error = ConversionError
Source§impl Verify for DecodedAccountDetails
impl Verify for DecodedAccountDetails
type Verified = AccountDetails
type Error = ConversionError
Source§impl Verify for DecodedAccountHeader
impl Verify for DecodedAccountHeader
type Verified = AccountHeader
type Error = VerificationError
Source§impl Verify for DecodedAccountId
impl Verify for DecodedAccountId
Source§impl Verify for DecodedAccountIdV1
impl Verify for DecodedAccountIdV1
type Verified = AccountIdV1
type Error = AccountIdError
Source§impl Verify for DecodedAccountPatch
impl Verify for DecodedAccountPatch
type Verified = AccountPatch
type Error = VerificationError
Source§impl Verify for DecodedAccountStorage
impl Verify for DecodedAccountStorage
type Verified = AccountStorage
type Error = VerificationError
Source§impl Verify for DecodedAccountStorageDetails
impl Verify for DecodedAccountStorageDetails
type Verified = AccountStorageDetails
type Error = ConversionError
Source§impl Verify for DecodedAccountStorageHeader
impl Verify for DecodedAccountStorageHeader
type Verified = AccountStorageHeader
type Error = VerificationError
Source§impl Verify for DecodedAccountStoragePatch
impl Verify for DecodedAccountStoragePatch
type Verified = AccountStoragePatch
type Error = VerificationError
Source§impl Verify for DecodedAccountUpdateDetails
impl Verify for DecodedAccountUpdateDetails
type Verified = AccountUpdateDetails
type Error = VerificationError
Source§impl Verify for DecodedAccountVaultDetails
impl Verify for DecodedAccountVaultDetails
type Verified = AccountVaultDetails
type Error = ConversionError
Source§impl Verify for DecodedAccountVaultPatch
impl Verify for DecodedAccountVaultPatch
type Verified = AccountVaultPatch
type Error = VerificationError
Source§impl Verify for DecodedAccountWitness
impl Verify for DecodedAccountWitness
type Verified = AccountWitness
type Error = VerificationError
Source§impl Verify for DecodedAdviceInputs
impl Verify for DecodedAdviceInputs
type Verified = AdviceInputs
type Error = AdviceError
Source§impl Verify for DecodedAdviceMap
impl Verify for DecodedAdviceMap
Source§impl Verify for DecodedAdviceMapEntry
impl Verify for DecodedAdviceMapEntry
Source§impl Verify for DecodedAsset
impl Verify for DecodedAsset
Source§impl Verify for DecodedAssetId
impl Verify for DecodedAssetId
Source§impl Verify for DecodedAssetVault
impl Verify for DecodedAssetVault
type Verified = AssetVault
type Error = VerificationError
Source§impl Verify for DecodedAuthInputs
impl Verify for DecodedAuthInputs
type Verified = TransactionInputs
type Error = ConversionError
Source§impl Verify for DecodedAuthenticatedInputNote
Checks proof/note identity, not inclusion against a trusted block root.
impl Verify for DecodedAuthenticatedInputNote
Checks proof/note identity, not inclusion against a trusted block root.
Source§impl Verify for DecodedBatchAccountUpdate
impl Verify for DecodedBatchAccountUpdate
type Verified = BatchAccountUpdate
type Error = VerificationError
Source§impl Verify for DecodedBlockAccountUpdate
impl Verify for DecodedBlockAccountUpdate
type Verified = BlockAccountUpdate
type Error = VerificationError
Source§impl Verify for DecodedBlockRange
impl Verify for DecodedBlockRange
type Verified = RangeInclusive<BlockNumber>
type Error = InvalidBlockRange
Source§impl Verify for DecodedFeeParameters
impl Verify for DecodedFeeParameters
Source§impl Verify for DecodedForeignAccountSlotName
impl Verify for DecodedForeignAccountSlotName
type Verified = (StorageSlotId, StorageSlotName)
type Error = VerificationError
Source§impl Verify for DecodedGetAccountRequest
impl Verify for DecodedGetAccountRequest
type Verified = GetAccountRequest
type Error = ConversionError
Source§impl Verify for DecodedGetAccountResponse
impl Verify for DecodedGetAccountResponse
type Verified = GetAccountResponse
type Error = ConversionError
Source§impl Verify for DecodedGetNoteScriptByRootResponse
impl Verify for DecodedGetNoteScriptByRootResponse
type Verified = Option<NoteScript>
type Error = ConversionError
Source§impl Verify for DecodedIndexedOutputNote
impl Verify for DecodedIndexedOutputNote
type Verified = (usize, OutputNote)
type Error = VerificationError
Source§impl Verify for DecodedIndexedSmtLeaf
impl Verify for DecodedIndexedSmtLeaf
Source§impl Verify for DecodedInputNote
impl Verify for DecodedInputNote
Source§impl Verify for DecodedInputNotes
impl Verify for DecodedInputNotes
type Verified = InputNotes<InputNote>
type Error = VerificationError
Source§impl Verify for DecodedIsInvitationCodeValidRequest
Returns the raw invitation code. The handler validates the code because an empty code is
accepted when allowlist enforcement is disabled.
impl Verify for DecodedIsInvitationCodeValidRequest
Returns the raw invitation code. The handler validates the code because an empty code is accepted when allowlist enforcement is disabled.
Source§impl Verify for DecodedKernelConfig
impl Verify for DecodedKernelConfig
type Verified = KernelConfig
type Error = ProtocolConfigError
Source§impl Verify for DecodedMastForest
impl Verify for DecodedMastForest
type Verified = MastForest
type Error = MastForestError
Source§impl Verify for DecodedMerklePath
impl Verify for DecodedMerklePath
type Verified = MerklePath
type Error = MerkleError
Source§impl Verify for DecodedMerkleStore
impl Verify for DecodedMerkleStore
type Verified = MerkleStore
type Error = AdviceError
Source§impl Verify for DecodedMerkleStoreNode
impl Verify for DecodedMerkleStoreNode
Source§impl Verify for DecodedMmrDelta
impl Verify for DecodedMmrDelta
Source§impl Verify for DecodedNextProtocolConfig
impl Verify for DecodedNextProtocolConfig
type Verified = NextProtocolConfig
type Error = ProtocolConfigError
Source§impl Verify for DecodedNoteArgument
impl Verify for DecodedNoteArgument
Source§impl Verify for DecodedNoteAttachment
impl Verify for DecodedNoteAttachment
type Verified = NoteAttachment
type Error = VerificationError
Source§impl Verify for DecodedNoteAttachments
impl Verify for DecodedNoteAttachments
type Verified = NoteAttachments
type Error = VerificationError
Source§impl Verify for DecodedNoteDetails
impl Verify for DecodedNoteDetails
type Verified = NoteDetails
type Error = VerificationError
Source§impl Verify for DecodedNoteHeader
impl Verify for DecodedNoteHeader
type Verified = NoteHeader
type Error = VerificationError
Source§impl Verify for DecodedNoteInclusionProof
impl Verify for DecodedNoteInclusionProof
type Verified = (NoteId, NoteInclusionProof)
type Error = VerificationError
Source§impl Verify for DecodedNoteMetadata
impl Verify for DecodedNoteMetadata
type Verified = NoteMetadata
type Error = VerificationError
Source§impl Verify for DecodedNoteRecipient
impl Verify for DecodedNoteRecipient
type Verified = NoteRecipient
type Error = VerificationError
Source§impl Verify for DecodedNoteScript
impl Verify for DecodedNoteScript
type Verified = NoteScript
type Error = VerificationError
Source§impl Verify for DecodedNoteStorage
impl Verify for DecodedNoteStorage
Source§impl Verify for DecodedOutputNote
impl Verify for DecodedOutputNote
type Verified = OutputNote
type Error = VerificationError
Source§impl Verify for DecodedOutputNoteBatch
impl Verify for DecodedOutputNoteBatch
type Verified = Vec<(usize, OutputNote)>
type Error = VerificationError
Source§impl Verify for DecodedPaginationInfo
impl Verify for DecodedPaginationInfo
type Verified = PaginationInfo
type Error = ConversionError
Source§impl Verify for DecodedPartialAccount
impl Verify for DecodedPartialAccount
type Verified = PartialAccount
type Error = VerificationError
Source§impl Verify for DecodedPartialMmr
Checks reconstruction against the supplied peaks without authenticating those peaks.
impl Verify for DecodedPartialMmr
Checks reconstruction against the supplied peaks without authenticating those peaks.
type Verified = PartialMmr
type Error = VerificationError
Source§impl Verify for DecodedPartialNote
impl Verify for DecodedPartialNote
type Verified = PartialNote
type Error = VerificationError
Source§impl Verify for DecodedPartialNoteMetadata
impl Verify for DecodedPartialNoteMetadata
type Verified = PartialNoteMetadata
type Error = VerificationError
Source§impl Verify for DecodedPartialSmt
impl Verify for DecodedPartialSmt
type Verified = PartialSmt
type Error = VerificationError
Source§impl Verify for DecodedPartialSmtNodeLevel
impl Verify for DecodedPartialSmtNodeLevel
Source§impl Verify for DecodedPartialStorage
impl Verify for DecodedPartialStorage
type Verified = PartialStorage
type Error = VerificationError
Source§impl Verify for DecodedPartialStorageMap
impl Verify for DecodedPartialStorageMap
type Verified = PartialStorageMap
type Error = VerificationError
Source§impl Verify for DecodedPartialVault
impl Verify for DecodedPartialVault
type Verified = PartialVault
type Error = VerificationError
Source§impl Verify for DecodedPrivateAccountUpdate
impl Verify for DecodedPrivateAccountUpdate
Source§impl Verify for DecodedPrivateOutputNote
impl Verify for DecodedPrivateOutputNote
type Verified = PrivateOutputNote
type Error = VerificationError
Source§impl Verify for DecodedProofSecurityPolicy
impl Verify for DecodedProofSecurityPolicy
type Verified = ProofSecurityPolicy
type Error = VerificationError
Source§impl Verify for DecodedProtocolConfig
impl Verify for DecodedProtocolConfig
type Verified = ProtocolConfig
type Error = VerificationError
Source§impl Verify for DecodedPublicKey
Returns the canonical public key; ownership and authorization are not established here.
impl Verify for DecodedPublicKey
Returns the canonical public key; ownership and authorization are not established here.
Source§impl Verify for DecodedPublicOutputNote
impl Verify for DecodedPublicOutputNote
type Verified = PublicOutputNote
type Error = VerificationError
Source§impl Verify for DecodedRawOutputNote
impl Verify for DecodedRawOutputNote
type Verified = RawOutputNote
type Error = VerificationError
Source§impl Verify for DecodedRawOutputNotes
impl Verify for DecodedRawOutputNotes
Source§impl Verify for DecodedRegisterAccountRequest
impl Verify for DecodedRegisterAccountRequest
type Verified = RegisterAccountRequest
type Error = ConversionError
Source§impl Verify for DecodedSignature
Returns the canonical signature; authenticity requires a public key and signed message.
impl Verify for DecodedSignature
Returns the canonical signature; authenticity requires a public key and signed message.
Source§impl Verify for DecodedSlotData
impl Verify for DecodedSlotData
Source§impl Verify for DecodedSmtLeafEntryList
impl Verify for DecodedSmtLeafEntryList
Source§impl Verify for DecodedSmtOpening
impl Verify for DecodedSmtOpening
Source§impl Verify for DecodedSparseMerklePath
impl Verify for DecodedSparseMerklePath
type Verified = SparseMerklePath
type Error = MerkleError
Source§impl Verify for DecodedStorageMap
impl Verify for DecodedStorageMap
type Verified = StorageMap
type Error = VerificationError
Source§impl Verify for DecodedStorageMapDetailRequest
impl Verify for DecodedStorageMapDetailRequest
type Verified = StorageMapRequest
type Error = ConversionError
Source§impl Verify for DecodedStorageMapEntry
impl Verify for DecodedStorageMapEntry
Source§impl Verify for DecodedStorageMapPatch
impl Verify for DecodedStorageMapPatch
type Verified = StorageMapPatch
type Error = StorageMapPatchError
Source§impl Verify for miden_node_proto::generated::account::account_storage_header::DecodedStorageSlot
impl Verify for miden_node_proto::generated::account::account_storage_header::DecodedStorageSlot
type Verified = StorageSlotHeader
type Error = StorageSlotNameError
Source§impl Verify for miden_node_proto::generated::account::DecodedStorageSlot
impl Verify for miden_node_proto::generated::account::DecodedStorageSlot
type Verified = StorageSlot
type Error = VerificationError
Source§impl Verify for DecodedStorageSlotId
impl Verify for DecodedStorageSlotId
Source§impl Verify for DecodedStorageSlotPatch
impl Verify for DecodedStorageSlotPatch
type Verified = (StorageSlotName, StorageSlotPatch)
type Error = VerificationError
Source§impl Verify for DecodedStorageValuePatch
impl Verify for DecodedStorageValuePatch
Source§impl Verify for DecodedSyncNullifiersResponse
impl Verify for DecodedSyncNullifiersResponse
type Verified = SyncNullifiersResponse
type Error = ConversionError
Source§impl Verify for DecodedTrackedMmrLeaf
impl Verify for DecodedTrackedMmrLeaf
Source§impl Verify for DecodedTransactionArgs
impl Verify for DecodedTransactionArgs
type Verified = TransactionArgs
type Error = VerificationError
Source§impl Verify for DecodedTransactionBatch
impl Verify for DecodedTransactionBatch
Source§impl Verify for DecodedTransactionEffects
Dispatches the decoded version.
impl Verify for DecodedTransactionEffects
Dispatches the decoded version.
type Verified = TransactionEffects
type Error = VerificationError
Source§impl Verify for DecodedTransactionEffectsV1
Verifies the effects. The account patch, the input notes and the output notes are each
verified, and both note collections are checked for duplicates and length limits.
impl Verify for DecodedTransactionEffectsV1
Verifies the effects. The account patch, the input notes and the output notes are each verified, and both note collections are checked for duplicates and length limits.
The reference block commitment is not checked against the reference block number, the account patch is not checked to belong to the account the transaction ran against, and input notes are not authenticated.