Re-exports§
pub use crate::*;
Modules§
Macros§
Structs§
- Read only view of a block with more strict structs for hash sensitive structs. Warning: This is experimental and may be removed or changed in the future.
- Warning: This is experimental and may be removed or changed in the future.
- Read-only view of a transaction body. With correct hash and original bytes. Warning: This is experimental and may be removed in the future.
- A set of witnesses for a transaction. Keeps original bytes to allow for safe roundtrip serialization. That helps to avoid incorrect script data hash after adding a vkey or bootstrap witness. You can add a vkey witness or a bootstrap witness to the set. Or get TransactionWitnessSet to read fields.
- Warning: This is experimental and may be removed in the future.
- ED25519 key used as public key
- We introduce a builder-pattern format for creating transaction outputs This is because:
Enums§
- JSON <-> PlutusData conversion schemas. Follows ScriptDataJsonSchema in cardano-cli defined at: https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/ScriptData.hs#L254
- Each new language uses a different namespace for hashing its script This is because you could have a language where the same bytes have different semantics So this avoids scripts in different languages mapping to the same hash Note that the enum value here is different than the enum value for deciding the cost model of a script
- Used to choosed the schema for a script JSON string
Functions§
- Receives a script JSON string and returns a NativeScript. Cardano Wallet and Node styles are supported.
- Returns the state of the transaction sets. If all sets have a tag, it returns AllSetsHaveTag. If all sets have no tag, it returns AllSetsHaveNoTag. If there is a mix of tagged and untagged sets, it returns MixedSets. This function is useful for checking if a transaction might be signed by a hardware wallet. And for checking which parameter should be used in a hardware wallet api. WARNING this function will be deleted after all tags for set types will be mandatory. Approx after next hf
- returns minimal amount of ada for the output for case when the amount is included to the output