'nobody' pair for default account & signature

This commit is contained in:
Jaco Greeff
2018-06-02 21:33:42 +02:00
parent 194e0b1ea4
commit 96c2a1da2c
3 changed files with 9 additions and 14 deletions
@@ -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,
+2 -2
View File
@@ -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 });
};