@polkadot/wasm-schnorrkel
Advanced tools
Comparing version 0.1.1 to 0.2.0-beta.1
// Copyright 2019 @polkadot/wasm-schnorrkel authors & contributors | ||
// This software may be modified and distributed under the terms | ||
// of the Apache-2.0 license. See the LICENSE file for details. | ||
// @ts-check | ||
@@ -6,0 +5,0 @@ const crypto = require('crypto'); |
@@ -8,6 +8,7 @@ // Copyright 2019 @polkadot/wasm-schnorrkel authors & contributors | ||
export function derivePublicSoft (publicKey: Uint8Array, chainCode: Uint8Array): Uint8Array; | ||
export function isReady (): boolean; | ||
export function keypairFromSeed (seed: Uint8Array): Uint8Array; | ||
export function sign (publicKey: Uint8Array, secretKey: Uint8Array, message: Uint8Array): Uint8Array; | ||
export function verify (signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array): boolean; | ||
export function isReady (): boolean; | ||
export function waitReady (): Promise<boolean>; |
// Copyright 2019 @polkadot/wasm-schnorrkel authors & contributors | ||
// This software may be modified and distributed under the terms | ||
// of the Apache-2.0 license. See the LICENSE file for details. | ||
// @ts-check | ||
@@ -11,6 +10,7 @@ const stubbed = require('./wasm'); | ||
module.exports.derivePublicSoft = stubbed.derive_public_soft; | ||
module.exports.isReady = stubbed.isReady; | ||
module.exports.keypairFromSeed = stubbed.keypair_from_seed; | ||
module.exports.sign = stubbed.sign; | ||
module.exports.verify = stubbed.verify; | ||
module.exports.isReady = stubbed.isReady; | ||
module.exports.waitReady = stubbed.waitReady; |
{ | ||
"name": "@polkadot/wasm-schnorrkel", | ||
"collaborators": [ | ||
"Jaco Greeff <jacogr@gamil.com>", | ||
"Jaco Greeff <jacogr@gmail.com>", | ||
"kianenigma <Kian.peymani@gmail.com>" | ||
@@ -21,3 +21,3 @@ ], | ||
}, | ||
"version": "0.1.1", | ||
"version": "0.2.0-beta.1", | ||
"peerDependencies": { | ||
@@ -24,0 +24,0 @@ "@polkadot/util": "*" |
@@ -1,2 +0,2 @@ | ||
# @polkadot/schnorrkel-js | ||
# @polkadot/wasm-schnorrkel | ||
@@ -3,0 +3,0 @@ A fork of [@parity/schnorrkel-js](https://github.com/polkadot-js/schnorrkel-js/tree/b1a1bf25be7397d3c21bba5ddde14286a58b269c) that allows proper operation against all the environments that the `@polkadot/api` supports. Changes from the base repo - |
const asm = null; // require('./wasm_asm'); | ||
const bytes = require('./wasm_wasm'); | ||
const imported = require('./wasm'); | ||
const js = require('./wasm'); | ||
module.exports = async function createExportPromise () { | ||
const imports = { | ||
'./wasm': imported | ||
'./wasm': js | ||
}; | ||
@@ -10,0 +10,0 @@ |
Sorry, the diff of this file is too big to display
308685
1508