MCPcopy Create free account
hub / github.com/chain/Core / newDest

Function newDest

protocol/tx_test.go:40–48  ·  view source on GitHub ↗
(t testing.TB)

Source from the content-addressed store, hash-verified

38}
39
40func newDest(t testing.TB) *testDest {
41 _, priv, err := ed25519.GenerateKey(nil)
42 if err != nil {
43 testutil.FatalErr(t, err)
44 }
45 return &testDest{
46 privKey: priv,
47 }
48}
49
50func (d *testDest) sign(t testing.TB, tx *legacy.Tx, index uint32) {
51 txsighash := tx.SigHash(index)

Callers 2

newAssetFunction · 0.85
issueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected