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.

25 lines
815 B

  1. # poseidon-lengths test
  2. Test to check the output of the Poseidon Hash implementations in Go and Rust for the cases when the BigInt outputed is of 31 bytes.
  3. - Go
  4. ```
  5. > go test
  6. bigint 166341157454475665850184286625226909090143669024322546717713937140175961129
  7. length 31
  8. bytes [94 37 80 113 132 94 199 232 119 124 206 119 0 59 128 138 249 85 43 37 236 41 18 110
  9. 214 23 182 6 121 124 41]
  10. hex 5e255071845ec7e8777cce77003b808af9552b25ec29126ed617b606797c29
  11. ```
  12. - Rust
  13. ```
  14. > cargo test -- --nocapture
  15. bigint "166341157454475665850184286625226909090143669024322546717713937140175961129"
  16. length 31
  17. bytes [94, 37, 80, 113, 132, 94, 199, 232, 119, 124, 206, 119, 0, 59, 128, 138, 249, 85, 43
  18. , 37, 236, 41, 18, 110, 214, 23, 182, 6, 121, 124, 41]
  19. hex "5e255071845ec7e8777cce77003b808af9552b25ec29126ed617b606797c29"
  20. ```