-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Task] Wasm Bindings Improvements #669
Comments
Users are already able to sign data without relying on our code. E.g. using TweetNaCl const key = new KeyPair(KeyType.Ed25519);
const seed = bs58.decode(key.private);
let naclKeyPair = nacl.sign.keyPair.fromSeed(seed);
let challengeBytes = Uint8Array.from([1,2,3,4]);
let signature = nacl.sign(challengeBytes, naclKeyPair.secretKey);
console.log(`Signature: ${bs58.encode(signature)}`); I do think we should switch to using Advantages of exposing
Disadvantages:
We have had requests to include other features in
I agree. Some conditional compilation required now just for
|
This comment on #660 may have been missed regarding the Stronghold bindings package namespace: https://github.com/iotaledger/identity.rs/pull/660/files#r816770207 Edit: resolved. |
As per internal discussions, the following tasks were marked as either important or easy to do prior to 0.5.0.
Each needs its own issue or PR now. |
Description
Remove exposure of Ed25519.sign, remove
Storage
Send/Sync
ties to thewasm
feature, and make keyDel in typescript compatible with the Rust code. Refactor theStorage
trait to return better errors, and simplify its API.Motivation
wasm
feature.MemStore
keyDel
slightly differs from the Rust code regarding idempotency.identity_account::types::signature::Signature::pkey
is not used in the Rust code.Storage::set_password
is no longer needed.Account
Storage
interface #597 (comment)To-do list
wasm
featurecfg_attr
on Storage and change the name of the feature that enables itStorage::key_del
should be idempotent or not. RefactorKeyLocation
#729Account
Signature
not to containPublicKey
[Task] RefactorAccount
Signature
#722SetPassword
method fromStorage
[Task] RemoveStorage::set_password
#720Storage
interface, potentially reducing the number of state variablesError
forStorage
InterfaceStorage
implementations, including any type of file- or network-I/O-related failuresUInt8Array
rather than Base58-BTC encoded strings for keys. [Task] Change keys in Wasm from Base58-BTC strings toUInt8Array
#721napi
related types and impl - Deduplicate Stronghold Nodejs wrapper code #872NapiResult
error messagesChange checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.The text was updated successfully, but these errors were encountered: