Releases: Concordium/concordium-base
Releases · Concordium/concordium-base
concordium_base 3.0.0
Summary
Add support for protocol 6 and Web3ID. This release is a major release that also removes some deprecated functionality
Changes
- Remove the constant
MAX_ALLOWED_INVOKE_ENERGY
since it was no longer
relevant with the way the node currently handles the invoke API. - Add
ED25519_SIGNATURE_LENGTH
constant for the size of an ed25519 signature. - Add
concordium_contracts_common::{Serial,Deserial}
implementations to
CredentialPublicKeys
andAccountAccessStructure
. - Add
sign_data
andgenerate
methods toAccountKeys
to sign arbitrary
data, and to generate a fresh set of keys. - Add
From<&AccountKeys>
instance for AccountAccessStructure. - Add
verify_data_signature
function to verify a signature with account keys
on arbitrary data. - Update notation of sigma protocols to better match the literature and the bluepaper.
- Move all sigma protocols to a common sigma-protocol crate.
- Move all range proof helper functions to
range_proofs
. - Add a new module
web3id
that defines types related to Web3ID and implements
proving and verification functions. - Add a new module
cis4_types
that defines the interface types for CIS4
compatible contracts.
concordium-wasm 3.0.0
Summary
Add support for protocol 6.
Changes
validate_module
is now parameterized byValidationConfig
which determines
which Wasm features should be allowed. The currently supported configurable features are- allow access to globals (defined in the current module) in data and element
initialization sections. - allow instructions defined in the sign extension operators
Wasm proposal.
- allow access to globals (defined in the current module) in data and element
instantiate
andinstantiate_with_metering
's return type is changed from
Artifact
toInstantiatedModule
which adds metadata on top of the artifact.
concordium-smart-contract-engine 3.0.0
Summary
Add support for protocol 6.
Changes
- Functions that process V1 smart contract modules
(invoke_receive_*_from_source
andinvoke_init_*_from_source
) are now
parameterized by aValidationConfig
which determines which Wasm features are
allowed. ReceiveParams
is extended withsupport_account_signature_checks
flag, that
enables or disables two new operations that can beinvoke
d. Querying account
public keys and checking account signatures.InvokeFailure
is extended with two new variants
SignatureDataMalformed
andSignatureCheckFailed
that can be triggered as a
result of checking a signature.
concordium_base 2.0.0
Summary
- Extend types
UpdatePayload
andUpdateType
with variants introduced in protocol version 6. - Implement
Serial
andDeserial
fornum::rational::Ratio<u64>
andDuration
. - Introduce types for protocol version 6:
Ratio
,ChainParameterVersion2
,GASRewardsCPV1
,TimeoutParameters
andFinalizationCommitteeParameters
. - Bump concordium-contracts-common to version 7.
concordium-wasm 2.0.0
Summary
Bump concordium-contracts-common to version 7.
concordium-smart-contract-engine 2.0.0
Summary
Bump concordium-contracts-common to version 7.
concordium_base 1.2.0
Summary
This release brings a number of improved APIs and a bug fix for serialization in update instructions.
The concordium-contracts-common dependency is bumped to version 6, and no longer has the sdk feature. Using derive macros from that crate means that use concordium_base::contracts_common as concordium_std
must be added to the modules where the derive macros are used.
Changes
- Add helpers to extract policy from credentials.
- Add helpers to
TransactionTime
to construct future timestamps relative to
current time, and from a unix timestamp. - Add
new_
helpers tocis2::TokenId
to simplify the common case of token id
construction from integral types. - Add new sigma protocol
VecComEq
for linking a vector commitment with individual commitments. - Add
VecCommitmentKey
for generating vector commitments. - Fix a serialization bug for UpdatePayload. The serialization did not match
that of the node for AddIdentityProvider and AddAnonymityRevoker payloads.
concordium-wasm 1.1.0
Summary
Bump concordium-contracts-common to version 6.
concordium-smart-contract-engine 1.2.0
Summary
- Bump concordium-contracts-common to version 6.
concordium base 1.1.1
This is a minor release that adds convenience functionality.
- Add Serialize instances to
Proof
andStatement
types, and its constituent
parts (AtomicProof
andAtomicStatement
). Deserial
forBTreeMap
andBTreeSet
no longer requiresCopy
constraint.