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.

23 lines
391 B

  1. package ringct
  2. import "testing"
  3. import "math/rand"
  4. func Test_Range_and_Borromean_Signature(t *testing.T){
  5. var c,mask Key
  6. for i := 0; i < 50;i++{ // test it 500 times
  7. var amount uint64 = rand.Uint64()
  8. sig := ProveRange(&c,&mask,amount)
  9. if VerifyRange(&c, *sig) == false {
  10. t.Errorf("Range Test failed")
  11. return
  12. }
  13. }
  14. }