actually create new bls keys

This commit is contained in:
Aayush Rajasekaran 2020-03-25 06:17:53 -04:00
parent 3896631a1c
commit 3a0df321d1

View File

@ -87,7 +87,8 @@ func (k *KeyManager) newBLSKey() *wallet.Key {
//sk := ffi.PrivateKeyGenerate(s.blsSeed)
// s.blsSeed++
sk := [32]byte{}
sk[0] = uint8(k.blsSeed + 1) // hack to keep gas values determinist
sk[0] = uint8(k.blsSeed) // hack to keep gas values determinist
k.blsSeed++
key, err := wallet.NewKey(types.KeyInfo{
Type: wallet.KTBLS,
PrivateKey: sk[:],