(t testing.TB)
| 38 | } |
| 39 | |
| 40 | func 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 | |
| 50 | func (d *testDest) sign(t testing.TB, tx *legacy.Tx, index uint32) { |
| 51 | txsighash := tx.SigHash(index) |