set verifreg root key

This commit is contained in:
Jeromy 2020-05-13 17:04:08 -07:00
parent 32dad4d43b
commit a9689d8345

View File

@ -2,7 +2,6 @@ package genesis
import ( import (
"context" "context"
"crypto/rand"
"github.com/filecoin-project/go-address" "github.com/filecoin-project/go-address"
"github.com/ipfs/go-hamt-ipld" "github.com/ipfs/go-hamt-ipld"
@ -23,9 +22,10 @@ func SetupVerifiedRegistryActor(bs bstore.Blockstore) (*types.Actor, error) {
return nil, err return nil, err
} }
var r [32]byte // TODO: grab from genesis template k, err := address.NewFromString("t3qfoulel6fy6gn3hjmbhpdpf6fs5aqjb5fkurhtwvgssizq4jey5nw4ptq5up6h7jk7frdvvobv52qzmgjinq")
_, _ = rand.Read(r[:]) if err != nil {
k, _ := address.NewSecp256k1Address(r[:]) return nil, err
}
sms := verifreg.ConstructState(h, k) sms := verifreg.ConstructState(h, k)