Crate cardano_sdk

Crate cardano_sdk 

Source

Modules§

address
cbor
A re-export of minicbor.
credential
crypto
datum
execution_units
hash
input
macros
Useful macros for testing and quickly constructing objects.
network
network_id
output
plutus_data
plutus_script
plutus_version
protocol_parameters
redeemer_pointer
slot_bound
transaction
value
with_network_id

Macros§

address
Construct a Mainnet address from a literal or from its constituents.
address_test
Construct a Testnet address from a literal or from its constituents.
assets
Construct a multi-asset object; akin to a Value<u64> but without lovelace.
constr
A handy macro for constructing PlutusData constructors from a known set of fields. The macro is variadic. The first argument refers to the constructor variant index, while other arguments indicates the constructor fields.
hash
Construct variable-length Hash from base16-encoded text strings.
impl_from_int
impl_try_into_int
input
Construct Input from base16-encoded text strings & plain numbers.
key_credential
Construct a key Credential from base16-encoded text strings.
output
Construct an Output from an Address and an optional Value.
plutus_data
Construct a PlutusData from a serialised CBOR hex-encoded string.
plutus_script
Construct a PlutusScript from a PlutusVersion and a base16-encoded flat-serialised program.
script_credential
Construct a script Credential from base16-encoded text strings.
value
Construct a Value<u64> from a lovelace amount and a list of assets.

Structs§

Address
An address captures spending and delegation conditions of assets in the network.
ChangeStrategy
Defines the behaviour of the transaction builder towards change outputs.
Credential
A wrapper around the blake2b-224 hash digest of a key or script.
ExecutionUnits
Abstract execution units used to measure execution of PlutusScript.
Hash
A blake2b hash digest; typically 28 or 32 bytes long.
Input
A reference to a past transaction output.
LeakableSigningKey
An ed25519 signing key which leaks through its serde::Serialised instance. Used in command-lines and interfaces.
NetworkId
A network identifier to protect misuses of addresses or transactions on a wrong network.
Output
A transaction output, which comprises of at least an Address and a Value<u64>.
PlutusData
An arbitrary data format used by Plutus smart contracts.
PlutusScript
A flat-encoded Plutus program, alongside its PlutusVersion.
ProtocolParameters
Protocol parameters restricted to the set immediately useful to this library.
RedeemerPointer
A mostly-internal type linking scripts redeemers with their targets.
Signature
An EdDSA signature on Curve25519.
SigningKey
An ed25519 signing key (non-extended).
Transaction
A transaction, either under construction or fully signed.
Value
A multi-asset value, generic in its asset quantities.
VerificationKey
A ed25519 verification key (non-extended).
WithNetworkId
A type to allow bundling a network id with another. Useful to write trait instances that require a network id.

Enums§

Datum
A datum as found in Output.
Network
PlutusVersion
The version of a Plutus program, defining available semantic and builtins.
SlotBound
A slot boundary to define validity intervals on transactions. The given argument is expressed in (absolute) slot.

Traits§

IsAddressKind
Restricts the inhabitants that a generic parameter can take. This is used in the context of Address to carry certain predicates at the type-level and enable infaillible methods on addresses.
IsTransactionBodyState
Restricts the inhabitants that a generic parameter can take. This is used in the context of Transaction to allow some methods to be always accessible, or restricted to a particular state.