Comment around padding of seeds (#653)

This commit is contained in:
Jaco Greeff
2019-01-31 13:32:21 +01:00
committed by GitHub
parent 89952a16ad
commit 8d7ca09366
@@ -3,6 +3,8 @@ const { ApiPromise } = require('@polkadot/api');
const { Keyring } = require('@polkadot/keyring');
const { stringToU8a } = require('@polkadot/util');
// Important to note that we pad the seed to a length of 32 bytes using ' '
// The underlying seed needs to be exactly 32 bytes in length
const ALICE_SEED = 'Alice'.padEnd(32, ' ');
const BOB_ADDR = '5Gw3s7q4QLkSWwknsiPtjujPv3XM4Trxi5d4PgKMMk3gfGTE';