v0.3.0 - Shockwave
This release includes new features and utilities, bugfixes, and replaces secp256k signing and validation with the pre-compiled functions in the new crypto APIs introduced in the Shockwave Alpha update which should improve performance significantly.
New features
- Added
clearmethod toAppendStoreandDequeStoreto quickly reset the collections (#34) - docs.rs documentation now includes all sub-crates.
- BUGFIX:
secret-toolkit::snip721::Metadatawas severely out of date with the SNIP-721 specification, and not useful.
It is now compatible with deployed SNIP-721 contracts. - Added
typesmodule under theutilpackage, to standardize often used types. - Added
secret-toolkit::viewing_key, which can be imported by enabling theviewing-keyfeature. - Added
secret-toolkit::permit::PubKey::canonical_address(). - Types in
secret-toolkit::permit::Permitare now generic over the type of permissions they accept. - Added the
maxheaptype to the incubator. - Added
secret-toolkit::utils::feature_togglewhich allow managing feature flags in your contract.
Breaking
secret-toolkit::permit::validate()Now supports validating any type of Cosmos address.
Interface changes: Now takes a reference to the current token address instead
of taking it by value and an optional hrp string.
In addition, it returns a String and not HumanAddr.- Renamed
secret-toolkit::permit::Permissiontosecret-toolkit::permit::TokenPermission. secret-toolkit-cryptonow has features["hash", "rng" and "ecc-secp256k1"]which are all off by default - enable those you need.secret-toolkit-crypto::secp256k1::PublicKey::parsenow returnsStdResult<Self>.- Changes to
secret-toolkit::crypto::secp256k1::PrivateKey::sign:- The
dataargument is now any slice of bytes, and not the hash of a slice of data. - the
Apifromdeps.apiis now required as the second argument as we now use the precompiled implementation.
- The
- Changes to
secret-toolkit::crypto::secp256k1::PublicKey::verify:- the
Apifromdeps.apiis now required as the third argument as we now use the precompiled implementation.
- the
secret-toolkit-incubatornow has features["cashmap", "generational-store"]which are all off by default.