Skip to content

Verify eip712 signature poc#3

Open
JanKuczma wants to merge 1 commit intobrowser-benchfrom
eip712-ecdsa-demo
Open

Verify eip712 signature poc#3
JanKuczma wants to merge 1 commit intobrowser-benchfrom
eip712-ecdsa-demo

Conversation

@JanKuczma
Copy link
Contributor

A working PoC of verifying EIP-712 compatible signature.

}

[first, bytes[31] as Field]
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a trick to do it with less multiplications: compute the thing in the reverse order, the loop looks like this:
first = first*256 + bytes[30-i]

It's called Horner's method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants