Expand description
§Partner Chains domain types
This crate defines common domain and utility types used in the Partner Chain Toolkit.
Modules§
- byte_
string - Module providing various byte sequence wrapper types for use by the Partner Chains Toolkit crates
- crypto
- Cryptographic utilities for use by the domain types
- mainchain_
epoch - Module providing types and function for calculations on Cardano epoch and slot numbers
Macros§
- bounded_
str - Macro that creates a BoundedString, supporting string interpolation like alloc::format.
Structs§
- AdaBased
Staking - Information on ADA stake pool ownership
- AssetId
- Full data identifying a Cardano native asset
- Asset
Name - Cardano native asset name
- Aura
Public Key - Sr25519 public key used by Aura consensus algorithm. Not validated
- BTree
Map - An ordered map based on a B-Tree.
- Candidate
Registration - Cardano SPO registration. This is a stripped-down version of RegistrationData.
- Candidate
Registrations - Information about an Authority Candidate’s Registrations at some block.
- Cross
Chain KeyHash - blake2b_224 hash of a cross-chain public key
- Cross
Chain Public Key - Cross-chain public key (ECDSA)
- Cross
Chain Signature - Cross-chain signature created using CrossChainPublicKey
- DParameter
- Parameter controlling the number and proportion of registered and permissioned candidates selected into a Partner Chain committee, used by the Ariadne family of selection algorithms.
- Delegator
Stake Amount - Amount of Lovelace staked by a Cardano delegator to a single stake pool
- Epoch
Nonce - Cardano epoch nonce
- Grandpa
Public Key - Ed25519 public key used by the Grandpa finality gadget. Not validated
- Mainchain
Address - Wraps UTF-8 bytes of Mainchain Address in bech32 format. Example: utf-8 bytes of “addr_test1wz5qc7fk2pat0058w4zwvkw35ytptej3nuc3je2kgtan5dq3rt4sc” are “0x616464725f7465737431777a35716337666b327061743030353877347a77766b77333579747074656a336e7563336a65326b6774616e356471337274347363”
- Mainchain
Block - Data describing a Cardano block
- Mainchain
KeyHash - blake2b_224 hash of a Cardano Verification (Public) Key. It can be a hash of Payment Verification, Payment Extended Verification, Stake Pool Verification Key or Staking Verification Key.
- Mainchain
Signature - Cardano signature type (EDDSA)
- McBlock
Hash - Cardano block hash
- McBlock
Number - Cardano block number. In range [0, 2^31-1].
- McEpoch
Number - Cardano epoch number. In range [0, 2^31-1].
- McSlot
Number - Cardano slot number. In range [0, 2^63-1].
- McTx
Hash - Cardano transaction hash
- McTx
Index InBlock - An index of transaction in a block. In range [0, 2^31-1].
- Native
Token Amount - The amount of a Cardano native token
- Permissioned
Candidate Data - Information about a permissioned committee member candidate
- Policy
Id - Cardano Policy Id
- Pool
Delegation - ADA delegation data for a single Cardano SPO
- Registration
Data - Cardano SPO registration data
- ScEpoch
Number - Partner Chain epoch number
- ScSlot
Number - Partner Chain slot number
- Sidechain
Public Key - Partner Chain public key
- Sidechain
Signature - Cross-chain signature type (ECDSA) created using SidechainPublicKey
- Stake
Delegation - Amount of Lovelace (which is a fraction of 1 ADA) staked/locked on Cardano
- Stake
Distribution - A mapping between Cardano SPOs and the information about ADA delegation of their stake pools
- Stake
KeySignature - Cardano staking key signature type (EDDSA)
- Stake
Pool Public Key - Cardano stake pool public key (ed25519)
- Stake
Public Key - Cardano staking public key (ed25519)
- Transaction
Cbor - CBOR bytes of Cardano Transaction.
- UtxoId
- Identifies a Cardano UTxO (unspent transaction output)
- Utxo
Index - An index of output of a transaction. In range [0, 2^15-1].
- Utxo
Info - Extended information about a UTxO in Cardano ledger
- Utxo
Info Ordering Key - Key type used for ordering transaction outputs
- VKey
Witness Cbor - CBOR bytes of Cardano VKeyWitness.
- Vec
- A contiguous growable array type, written as
Vec<T>
, short for ‘vector’.
Enums§
- Delegator
Key - Represents a Cardano ADA delegator
- Network
Type - Type of Cardano network
Constants§
- MAINCHAIN_
SIGNATURE_ LEN - Length of Cardano signature (EDDSA)
- MAX_
ASSET_ NAME_ LEN - Maximum length of a Cardano native asset’s name in UTF-8 bytes
- STAKE_
KEY_ SIGNATURE_ LEN - Length of Cardano staking key signature (EDDSA)
- TX_
HASH_ SIZE - Size of a Cardano transaction hash
Functions§
- offset_
data_ epoch - Shifts given epoch back by [DATA_MC_EPOCH_OFFSET] accounting for underflow.
Type Aliases§
- Script
Hash - Cardano script hash