'nobody' pair for default account & signature
This commit is contained in:
@@ -15,14 +15,13 @@ Various useful utility functions that are used across all projects in the [@polk
|
||||
|
||||
It is split up into a number of internal packages -
|
||||
|
||||
- [packages/util](packages/util/) General utilities
|
||||
- [packages/util-crypto](packages/util-crypto/) Crypto and hashing utilities
|
||||
- [packages/util-keyring](packages/util-crypto/) Keyring management
|
||||
- [packages/util-rlp](packages/util-rlp/) RLP encoding & decoding
|
||||
- [packages/util-triehash](packages/util-triehash/) Calculation of trie hashes
|
||||
- [util](packages/util/) General utilities
|
||||
- [util-crypto](packages/util-crypto/) Crypto and hashing utilities
|
||||
- [util-keyring](packages/util-keyring/) Keyring management
|
||||
- [util-rlp](packages/util-rlp/) RLP encoding & decoding
|
||||
- [util-triehash](packages/util-triehash/) Calculation of trie hashes
|
||||
|
||||
## Contributing
|
||||
|
||||
- Make sure you have [Lerna](https://lernajs.io/) installed, `yarn install -g lerna`
|
||||
- Bootstrap the dependencies, `yarn`
|
||||
- Make any changes in the relevant package, on master merges new versions will be published automatically
|
||||
|
||||
+2
-6
@@ -5,16 +5,12 @@
|
||||
|
||||
import type { KeyringPair, KeyringPair$Json, KeyringPair$Meta } from '../types';
|
||||
|
||||
const hexToU8a = require('@polkadot/util/hex/toU8a');
|
||||
|
||||
const addressEncode = require('../address/encode');
|
||||
|
||||
const publicKey = hexToU8a(
|
||||
'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'
|
||||
);
|
||||
const publicKey = new Uint8Array(32);
|
||||
const address = addressEncode(publicKey);
|
||||
const meta = {
|
||||
name: 'everybody'
|
||||
name: 'nobody'
|
||||
};
|
||||
const json = {
|
||||
address,
|
||||
@@ -11,7 +11,7 @@ type TestKeyringMap = {
|
||||
};
|
||||
|
||||
const createKeyring = require('./testing');
|
||||
const everybody = require('./pair/everybody')();
|
||||
const nobody = require('./pair/nobody')();
|
||||
|
||||
module.exports = function testKeyringPairs (): TestKeyringMap {
|
||||
const keyring = createKeyring();
|
||||
@@ -23,5 +23,5 @@ module.exports = function testKeyringPairs (): TestKeyringMap {
|
||||
result[(name: string)] = pair;
|
||||
|
||||
return result;
|
||||
}, { _keyring: keyring, everybody });
|
||||
}, { _keyring: keyring, nobody });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user