(signer *account.Account, tx *ctypes.MutableTransaction)
| 38 | ) |
| 39 | |
| 40 | func signTransaction(signer *account.Account, tx *ctypes.MutableTransaction) error { |
| 41 | hash := tx.Hash() |
| 42 | sign, _ := signature.Sign(signer, hash[:]) |
| 43 | tx.Sigs = append(tx.Sigs, ctypes.Sig{ |
| 44 | PubKeys: []keypair.PublicKey{signer.PublicKey}, |
| 45 | M: 1, |
| 46 | SigData: [][]byte{sign}, |
| 47 | }) |
| 48 | return nil |
| 49 | } |
| 50 | |
| 51 | func TestStatelessValidator(t *testing.T) { |
| 52 | log.InitLog(log.InfoLog, log.Stdout) |
no test coverage detected