Verify
Every check on this page ran in your browser a moment ago.
Results
| coin | salt from root | address from salt | ends in 7777 | statements | launch call on chain |
|---|
By hand
You need five public values for a coin, all shown on its page: the address, the root, the parent, the counter and the salt. You also need keccak256, which every Ethereum library has.
First the salt. Put the 32 bytes of the root, the 20 bytes of the parent and the counter as 4 bytes, big end first, in a row and hash them.
salt = keccak256(root ++ parent ++ uint32(counter))
Then the address. Flap deploys each tax coin as a small proxy through its Portal with CREATE2, so the address depends only on the Portal, the salt and the proxy's code.
init = keccak256(0x3d602d80600a3d3981f3363d3d373d3d3d363d73 ++ impl ++ 0x5af43d82803e903d91602b57fd5bf3) address = last 20 bytes of keccak256(0xff ++ portal ++ salt ++ init) portal = 0xe2cE6ab80874Fa9Fa2aAE65D277Dd6B8e65C9De0 impl = 0x024f18294970B5c76c0691b87f138A0317156422
If that address is the coin's address, the coin was deployed with a salt made from this root. Next, a statement. Take its text exactly as shown, hash it, and split the digest into 64 characters of 4 bits. Add up 15 minus each character, and write that sum as 3 more characters. That gives 67 numbers from 0 to 15.
digest = keccak256(statement text) d = 64 characters of digest, then 3 characters of sum(15 - d[i])
The signature is 67 pieces of 32 bytes. Hash piece number j exactly 15 minus d[j] times. Put the 67 results in a row and hash them. That is the one-time public key.
end[j] = keccak256 applied (15 - d[j]) times to sig[j] key = keccak256(end[0] ++ end[1] ++ ... ++ end[66])
Last, the path. It is 3 hashes. Start with the key and the key's number. At each step, if the number is even, hash the current value followed by the next path hash; if odd, hash the path hash followed by the current value. Then halve the number, dropping the remainder. After 3 steps you must be holding the coin's root.
for each sibling in path: value = number is even ? keccak256(value ++ sibling) : keccak256(sibling ++ value) number = floor(number / 2) value == root
If every step lands where it should, then the statement was signed by a key under the root, and the root is inside the address. No elliptic curve was used at any step.