Repository navigation
API Reference
Changelog
Added
-
New
cardano/valuemodule, with handful of methods for working with builtin values:containsdeletedifferenceexpect_from_datafrom_assetsfrom_datainsertis_zerolovelace_ofmergenegatepoliciesquantity_ofreducerestricted_toscaleto_assetsto_datato_pairswithout_lovelacezero
-
New primitives for
aiken/crypto/bls12_381, completing coverage of the BLS12-381 builtins:g1.neg/g2.neg: to compute the additive inverse of a curve point.pairing.mul: to multiply twoMillerLoopResulttogether, aggregating pairings before a final verification.
-
A new type-alias in
cardano/assets:Tokens = Dict<AssetName, Int> -
from_dataandexpect_from_datafunctions have been added to:aiken/collection/listaiken/collection/pairs
-
from_valuehas been added toaiken/collection/dict -
to_valueandfrom_valuefunctions tocardano/assets. -
replicateadded toaiken/primitive/bytearray
Changed
-
⚠️ BREAKING-CHANGE⚠️
Valuehas been renamed toAssets, to leave room to the new builtin-Value. -
⚠️ BREAKING-CHANGE⚠️ cardano/transaction/script_purpose.{compare}now follows the ledger's ordering of script purposes, which is the ordering of theredeemerslist in the script context:Spend<Mint<Publish<Withdraw<Vote<Propose.
It previously followed the constructor order of
ScriptPurpose(Mintfirst,WithdrawbeforePublish), which does not match the on-chain ordering. See #125.