- The build pipeline was using rust version
1.79
instead of the version specified as part of the workflow. This caused runtime errorunreachable
for the WebAssembly module for certain operations. Fixing the pipeline to use1.73
as intended, resolved the issue.
- Support creating account with company related attributes:
lei
,legalName
,legalCountry
,businessNumber
andregistrationAuth
, allow for company account creation.
- The function
verify_presentation
to@concordium/rust-bindings/wallet
, exposed with the WASM entrypointverifyPresentation
.
- The function
create_id_request_v1_ext
exposed with the WASM entrypointcreateIdRequestV1
now expects a new JSON type. - The function
create_identity_recovery_request_ext
exposed with the WASM entrypointcreateIdentityRecoveryRequest
now expects a new JSON type.
- Identity requests, identity recovery requests and unsigned credentials are now created using the
wallet_library
fromconcordium-base
instead of the local implementation. - Deriving wallet keys is now done by utilizing functionality from
wallet_library
inconcordium-base
instead of the local implementation.
- Added react-native condition to root/dapp subpath for, which uses javascript converted from the corresponding WASM used otherwise.
- The package has been split into two entrypoints to decrease the size of bundles produced for applications using only part of the functionality provided.
@concordium/rust-bindings
(and its alias@concordium/rust-bindings/dapp
) entrypoints expose functionality commonly used by dApps.@concordium/rust-bindings/wallet
entrypoint exposes functionality commonly used by wallets and other applications requiring functionality used in wallets.- If using a bundler, it might be preferable to load the WASM module asynchronously instead of the version which has it inlined. This can be done
by adding an alias to your bundler resolve configuration from
@concordium/rust-bindings
to@concordium/rust-bindings/bundler
. - This change makes the library incompatible with node versions <16 and requires bundlers to respect the
exports
field ofpackage.json
. - For TypeScript projects the minimum required version of typescript is:
- NodeJS: 4.7,
"moduleResolution": "node16" // or "nodenext"
- Bundled applications (webpack, esbuild, rollup, etc...): 5.0,
"moduleResolution": "bundler"
- NodeJS: 4.7,
create_web3_id_proof_ext
function.verify_web3_id_credential_signature_ext
function.get_verifiable_credential_backup_encryption_key_ext
function.
- Add issuer contract index and subindex as arguments to
get_verifiable_credential_signing_key_aux
andget_verifiable_credential_public_key_ext
.
get_verifiable_credential_encryption_key_ext
function.
display_type_schema_template
function
- Errors thrown from entrypoints in
external_functions.rs
are now proper javascriptError
s.
- Updated reference to concordium-base, which improves error messages when serializing/deserializing using smart contract schemas.
- Added an additional parameter to contract schema serialization/deserializtion entrypoints, making it possible to receive errors in a verbose format with added detail.
- Methods for deriving verifiable credentials keys from a seed phrase.
generateBakerKeys
now also returns the private keys.
deserializeTypeValue
- Updated dependencies from concordium-base. (Which includes a bugfix for serialization of negative integers in contract values)
serialize_credential_deployment_payload
create_unsigned_credential_v1
generateBakerKeys
serializeTypeValue
getInitContractParameterSchema
getReceiveContractParameterSchema
createIdProof
.
deserializeReceiveError
.deserializeInitError
.
- Bumped the concordium-contracts-common rust dependency version from 3.1 to 4.1.
deserializeReceiveReturnValue
.
- Add
getCredentialId
method for the HdWallet.
- Bindings for the HdWallet methods:
getAccountSigningKey
,getAccountPublicKey
,getPrfKey
,getSignatureBlindingRandomness
andgetAttributeCommitmentRandomness
now takes the identity provider index as parameter.
createCredentialV1
createIdRequestV1
createIdentityRecoveryRequest
- Bindings for the HdWallet methods:
getAccountSigningKey
,getAccountPublicKey
,getPrfKey
,getSignatureBlindingRandomness
andgetAttributeCommitmentRandomness
.