Expand description
The core module provides all the pure Rust Wormhole primitives.
This crate provides chain-agnostic types from Wormhole for consumption in on-chain contracts and within other chain-specific Wormhole Rust SDK’s. It includes:
- Constants containing known network data/addresses.
- Parsers for VAA’s and Payloads.
- Data types for Wormhole primitives such as GuardianSets and signatures.
- Verification Primitives for securely checking payloads.
Re-exports§
pub use vaa::Vaa;
Modules§
- accountant
- Parsers for Accountant Actions..
- accountant_
modification - core
- Parsers for core bridge VAAs.
- ibc_
receiver - ibc_
translator - nft
- Parsers for NFT bridge VAA Actions..
- ntt_
accountant - Parsers for NTT Accountant Actions.
- relayer
- Parsers for Standardized Relayer VAAs.
- token
- Parsers for Token bridge VAAs.
- vaa
- VAA’s represent a collection of signatures combined with a message and its metadata. VAA’s are used as a form of proof; by submitting a VAA to a target contract, the receiving contract can make assumptions about the validity of state on the source chain.
Structs§
- Address
- Wormhole specifies addresses as 32 bytes. Addresses that are shorter, for example 20 byte Ethereum addresses, are left zero padded to 32.
- Amount
- Wormhole specifies an amount as a uint256 encoded in big-endian order.
- Guardian
Address - Guardian
SetInfo - A
GuardianSetis a versioned set of keys that can sign Wormhole messages.
Enums§
Constants§
- GOVERNANCE_
EMITTER - The
GOVERNANCE_EMITTERis a special address Wormhole guardians trust to observe governance actions from. The value is “0000000000000000000000000000000000000000000000000000000000000004”.