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
Mainnetaddress from a literal or from its constituents. - address_
test - Construct a
Testnetaddress 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
PlutusDataconstructors 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
Hashfrom base16-encoded text strings. - impl_
from_ int - impl_
try_ into_ int - input
- Construct
Inputfrom base16-encoded text strings & plain numbers. - key_
credential - Construct a key
Credentialfrom base16-encoded text strings. - output
- Construct an
Outputfrom anAddressand an optionalValue. - plutus_
data - Construct a
PlutusDatafrom a serialised CBOR hex-encoded string. - plutus_
script - Construct a
PlutusScriptfrom aPlutusVersionand a base16-encoded flat-serialised program. - script_
credential - Construct a script
Credentialfrom 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.
- Change
Strategy - Defines the behaviour of the transaction builder towards change outputs.
- Credential
- A wrapper around the blake2b-224 hash digest of a key or script.
- Execution
Units - 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.
- Leakable
Signing Key - An ed25519 signing key which leaks through its serde::Serialised instance. Used in command-lines and interfaces.
- Network
Id - A network identifier to protect misuses of addresses or transactions on a wrong network.
- Output
- A transaction output, which comprises of at least an
Addressand aValue<u64>. - Plutus
Data - An arbitrary data format used by Plutus smart contracts.
- Plutus
Script - A flat-encoded Plutus program, alongside its
PlutusVersion. - Protocol
Parameters - Protocol parameters restricted to the set immediately useful to this library.
- Redeemer
Pointer - A mostly-internal type linking scripts redeemers with their targets.
- Signature
- An EdDSA signature on Curve25519.
- Signing
Key - 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.
- Verification
Key - A ed25519 verification key (non-extended).
- With
Network Id - 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
- Plutus
Version - The version of a Plutus program, defining available semantic and builtins.
- Slot
Bound - A slot boundary to define validity intervals on transactions. The given argument is expressed in (absolute) slot.
Traits§
- IsAddress
Kind - Restricts the inhabitants that a generic parameter can take. This is used in the context of
Addressto carry certain predicates at the type-level and enable infaillible methods on addresses. - IsTransaction
Body State - Restricts the inhabitants that a generic parameter can take. This is used in the context of
Transactionto allow some methods to be always accessible, or restricted to a particular state.