Schnorrkel support (#297)
* Initial schnorrkel support * Start conversion of actual keyring * Wrap encoding/decoding (needs another check) * Manage encoding version & types with passthrough * Update to version with working sign * Cleanup pair interface (with seed) * Fix failing tests * Align naclSign signature * Update tests for nacl (with TS conversion) * Bump version with CHANGELOG * Remove unneeded dep * Use KeyringOptions instead of PairType * Do isNumber check on addressPrefix
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { KeyringPair } from './types';
|
||||
import { KeyringPair, KeyringOptions } from './types';
|
||||
|
||||
import createKeyring from './testing';
|
||||
import nobody from './pair/nobody';
|
||||
@@ -11,8 +11,8 @@ type TestKeyringMap = {
|
||||
[index: string]: KeyringPair
|
||||
};
|
||||
|
||||
export default function testKeyringPairs (): TestKeyringMap {
|
||||
const keyring = createKeyring();
|
||||
export default function testKeyringPairs (options: KeyringOptions): TestKeyringMap {
|
||||
const keyring = createKeyring(options);
|
||||
const pairs = keyring.getPairs();
|
||||
|
||||
return pairs.reduce((result, pair) => {
|
||||
|
||||
Reference in New Issue
Block a user