Skip to content

Instantly share code, notes, and snippets.

@obscuren
Created December 10, 2015 09:55
Show Gist options
  • Select an option

  • Save obscuren/e8898a639e8221efdc87 to your computer and use it in GitHub Desktop.

Select an option

Save obscuren/e8898a639e8221efdc87 to your computer and use it in GitHub Desktop.
> ethid.validate(eth.accounts[3])
false
// verify 3, 4, and 5
> ethid.verify(eth.accounts[3], 0, {from:eth.accounts[0], gas:200000});
> ethid.verify(eth.accounts[4], 0, {from:eth.accounts[0], gas:200000});
> ethid.verify(eth.accounts[5], 0, {from:eth.accounts[0], gas:200000});
0
/ | \
3 4 5
> ethid.validate(eth.accounts[3])
false
> ethid.verify(eth.accounts[3], 0, {from:eth.accounts[4], gas:200000});
0
/ | \
| 4 5
\ |
3
> ethid.validate(eth.accounts[3])
false
> ethid.verify(eth.accounts[3], 0, {from:eth.accounts[5], gas:200000});
0
/ | \
| 4 5
\ | /
3
> ethid.validate(eth.accounts[3])
true
@obscuren

Copy link
Copy Markdown
Author

ethid.verify(key, trust_level)

0 = marginally
1 = complete

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