You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
454 B

  1. package test
  2. import (
  3. "testing"
  4. ethCommon "github.com/ethereum/go-ethereum/common"
  5. "github.com/stretchr/testify/assert"
  6. )
  7. func TestGenAuths(t *testing.T) {
  8. chainID := uint16(0)
  9. hermezContractAddr := ethCommon.HexToAddress("0xc344E203a046Da13b0B4467EB7B3629D0C99F6E6")
  10. const nAuths = 5
  11. auths := GenAuths(nAuths, chainID, hermezContractAddr)
  12. for _, auth := range auths {
  13. assert.True(t, auth.VerifySignature(chainID, hermezContractAddr))
  14. }
  15. }