MCPcopy Create free account
hub / github.com/chain/txvm / init

Function init

testutil/keys.go:36–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36func init() {
37 var err error
38 TestXPrv, TestXPub, err = chainkd.NewXKeys(zeroReader{})
39 if err != nil {
40 panic(err)
41 }
42 TestPub = TestXPub.PublicKey()
43 TestPubs = []ed25519.PublicKey{TestPub}
44 TestCipher, err = miscreant.NewAESPMACSIV(miscreant.GenerateKey(32))
45 if err != nil {
46 panic(err)
47 }
48}

Callers

nothing calls this directly

Calls 2

NewXKeysFunction · 0.92
PublicKeyMethod · 0.80

Tested by

no test coverage detected