0.0.4 • Published 3 years ago

filecoin-signing-sync v0.0.4

Weekly downloads
4
License
(MIT OR Apache-2....
Repository
-
Last release
3 years ago

filecoin-signing-sync

Small wrapper for @zondax/filecoin-signing-tools to allow asynchronous load of the package.

Overcomes trouble with WASM and bundlers: inability to require zondax package directly due to WASM dependency.

Installation

npm add filecoin-signing-sync

Usage

import * as filecoinSigning from 'filecoin-signing-sync'
const signingTools = await filecoinSigning.load()
// const payload = ...
const transaction = signingTools.transactionSerialize(payload);
// const singature = ...
// const transaction = ...
const recover = signingTools.verifySignature(signature, transaction);

License

Apache-2.0 or MIT