This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
Exend the svm-codec
Wasm API to support Signatures
#482
Labels
AA
Related to the Accounts Abstraction
codec
Related to the Codec
simple-coin-iteration-2
svm
svm-core
SVM core change
Depends on #483
This issue will extend the Wasm API of the
svm_codec.wasm
to support the new Signatures Schemes.Consequently, the svm-codec-npm will have to be extended as well (@avive FYI)
Extensions to be implemented:
Transaction
tx
- a pointer to the binary Transaction (theEnvelope
and theMessage
parts).params
- a pointer to a JSON containing the data required for signing the transaction:The
params Schema
will consist of the keysalgorithm
andparams
.The
params
is a JSON that thealgorithm
key will dictate its schema.sigdata
Given a JSON containing the
Signatures
, we'd like to encode them from thesigdata
field.The encoding can vary between different Templates. For now, it suffices to support the
concatenate
encoding.(see
svm_codec::concat_sigs
under #483).Similar to the
wasm_sign
the input JSON will always have keysabi
andparams
.The
params
schema will vary depending on theabi
given. (again, for now we'll just deal withabi
assigned toconcat
).The text was updated successfully, but these errors were encountered: