| 1 |
-- in.cue -- |
| 2 |
import "encoding/hex" |
| 3 |
|
| 4 |
import "crypto/ed25519" |
| 5 |
|
| 6 |
t0: ed25519.Valid(hex.Decode("3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"), hex.Decode("76616c6964"), hex.Decode("f796ce9e6e23cbc15f6d308e886b1996335a6b1c40f7d618b1a6646be262974fdcf811214ce2705e04252edc63b068c84f61e8cace7814b3aac9c93565e3d904")) |
| 7 |
t1: ed25519.Valid(hex.Decode("3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"), hex.Decode("6d657373616765206d69736d61746368"), hex.Decode("708335b88a198dc75e7071b0b673a02c2cfff52d8d5a617a6a2de2cc487ba344ea832cb0b77383edad5651e75d397c3757d105c75e946bf04f2fcb38fdadce00")) |
| 8 |
t2: ed25519.Valid(hex.Decode("0000000000000000000000000000000000000000000000000000000000000000"), hex.Decode("77726f6e67206b6579"), hex.Decode("f4c5e79897560f64bbe351c0d00c4e47d74c5393a20ac8056f54213b492963f98572ccb22f787fcc764f7e993bdd34e7f13ff8487ffc1dd647fce74b1093eb04")) |
| 9 |
t3: ed25519.Valid(hex.Decode(""), hex.Decode("77726f6e67206b65792073697a65"), hex.Decode("34b7fe250b3ddfb1ba7e56aca7e869a59c5208315f705323c4b3abf915c2a8c07537417bd988b0144929f52b1d00eb768741e7e139dca10412ae1997b6644c09")) |
| 10 |
-- out/ed25519-v3 -- |
| 11 |
Errors: |
| 12 |
t3: error in call to crypto/ed25519.Valid: ed25519: publicKey must be 32 bytes: |
| 13 |
./in.cue:8:5 |
| 14 |
|
| 15 |
Result: |
| 16 |
t0: true |
| 17 |
t1: false |
| 18 |
t2: false |
| 19 |
t3: _|_ // t3: error in call to crypto/ed25519.Valid: ed25519: publicKey must be 32 bytes |