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