Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
agnxsh committed Jul 4, 2024
1 parent 118354a commit 9b3b2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/t_ethereum_verkle_ipa_primitives.nim
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ suite "IPA proof tests":
test "IPAProof Serialization and Deserialization":
proc testIPAProofSerDe() =

## Pull a valid Multiproof from a valid hex test vector as used in Go-IPA https://github.com/crate-crypto/go-ipa/blob/b1e8a79/ipa/ipa_test.go#L128
## Pull a valid IPAProof from a valid hex test vector as used in Go-IPA https://github.com/crate-crypto/go-ipa/blob/b1e8a79/ipa/ipa_test.go#L128
var validIPAProof_bytes {.noInit.}: EthVerkleIpaProofBytes
validIPAProof_bytes.fromHex(validIPAProof)

Expand All @@ -462,7 +462,7 @@ suite "IPA proof tests":
let s1 = ipa_proof.deserialize(validIPAProof_bytes)
doAssert s1 == cttEthVerkleIpa_Success, "Failed to deserialize IPA Proof"

## Serialize the Multiproof type in to a serialize Multiproof byte array
## Serialize the IPAProof type in to a serialize IPAProof byte array
var validIPAproof_bytes2 {.noInit} : EthVerkleIpaProofBytes
validIPAproof_bytes2.serialize(ipa_proof)
doAssert validIPAproof_bytes2.toHex() == validIPAProof, "Error in the multiproof serialization!\n" & (block:
Expand Down

0 comments on commit 9b3b2e1

Please sign in to comment.