- Changed the base64 schema decoding to allow padded and not padded strings.
- Allowed use of functions deprecated due to the removal of encrypted transfers in protocol version 7.
- Updated the internal library key_derivation to 2.0.0. This enforces that the seed phrase input must be 12, 15, 18, 21 or 24 words.
- Added a function
get_verifiable_credential_keys
for deriving the keys for a verifiable credential.
- Changed parameter_to_json to support parameter schemas.
- Changed parameter_to_json excepted encoding of schema field to be base64.
- Support
maxEnergy
in addition tomaxContractExecutionEnergy
inUpdate
andInit
payloads in thecreate_account_transaction
function.
- Added function for proving id statements.
- Added a function serialize_token_transfer_parameters to serialize parameters for CIS-2 transfers from JSON.
- Added support for V3 schema
- Removed the function for converting a serialized account transaction (as bytes) into JSON.
- Removed the function for signing any account transaction.
- Added a function for converting serialized parameters for smart contract updates (as bytes) into JSON.
- Added a function
create_account_transaction
for creating and signing an account transaction.
- Added a function for signing any account transaction.
- Added a function for signing a message.
- Added a function for converting a serialized account transaction (as bytes) into JSON.
- Updated version of
key_derivation
library to1.1.0
and started using the index of the identity provider for key derivation.
- Added function
generate_recovery_request
for creating identity recovery requests.
- Added function
create_id_request_and_private_data_v1
for creating an id request in the version 1 flow, where no initial account is created. Furthermore, IdCredSec, PrfKey and blinding randomness are determined determinstically from a seed. - Added function
create_credential_v1
creating a credential where the signing key, verification key and attribute randomness are genereated deterministically from a seed.
- Added function
get_identity_keys_and_randomness
for deriving IdCredSec, PrfKey and blinding randomness from a seed. - Added function
get_account_keys_and_randomness
for deriving signing key, verification key and attribute randomness from a seed.
- JSON serialization of the Rust type
DelegationTarget
has been updated to be consistent with the JSON serialization of the corresponding Haskell type, due to the renaming of L-Pool to passive delegation.
- JSON serialization of the Rust type
DelegationTarget
has been updated to be consistent with the JSON serialization of the corresponding Haskell type. - JSON serialization of commission rates have been updated so that now they are given as the actual rate,
instead of parts per hundred thausands. This means for example that now
0.05
or5.0e-2
should be used as input instead of5000
. - The files
mobile_wallet.h
,wallet.kt
andandroid.rs
has been updated with the functionsgenerate_baker_keys
,create_configure_baker_transaction
andcreate_configure_delegation_transaction
.
- New functions
create_configure_baker_transaction
andcreate_configure_delegation_transaction
have been added to support the new transaction typesconfigure baker
andconfigure delegation
that are introduced in Protocol Version 4. - A new function
generate_baker_keys
has been added.
- The functions
create_transfer
andcreate_encrypted_transfer
have been extended to support the new transfer types, i.e. transfer with memo and encrypted transfer with memo, respectively. If the JSON fieldmemo
is given in the input,create_transfer
will use the payload for transfer with memo, andcreate_encrypted_transfer
will use the payload for encrypted transfer with memo. If thememo
is not given in the input, the functions will use the payloads for transfer and encrypted transfer, respectively.
- in the response
create_credential
the fieldcommitmentsRandomness
is added and contains the randomness from commitments used in proofs. - the input object of
create_id_request_and_private_data
has an additional optional fieldarThreshold
. When used it must be at least 1 and no more than the number of anonymity revokers. When not used, the functionality is unaffected by this change.
- in the response from
create_credential
the fieldaccountData
is renamed toaccountKeys
and its structure is changed. It is now a dictionary of dictionaries to reflect the two-level indexing of keys. - the "signatures" response from the transaction making functions is changed to reflect the two level indexing of signatures.
- the
create_credential
function requires an additional fieldexpiry
, which should have the same format and has the same meaning as theexpiry
field when creating transactions, i.e., it is a u64 and denotes the number of seconds since the unix epoch. - the
credential
field object in the response fromcreate_credential
is modified. There is a new fieldcredentialPublicKeys
and the old fieldaccount
is removed. - there is a new field inside the
credential
object in the response fromcreate_credential
. The field ismessageExpiry
, it is mandatory and has typeu64
.