Skip to content

Instantly share code, notes, and snippets.

@eugeneotto
eugeneotto / dapper.rb
Created May 31, 2019
Dapper / ERC-1271 wallet signature validation in Ruby
View dapper.rb
require 'web3/eth'
ERC_1271_MAGIC_VALUE = '1626ba7e'
ERC_1271_ABI = <<~JSON
[
{
"constant": true,
"inputs": [
{
"name": "hash",
@eugeneotto
eugeneotto / gist:192af598a911318b5f43b3f3bd1a0e71
Created Jul 11, 2018
List of CryptoKitties cattribute values and masks
View gist:192af598a911318b5f43b3f3bd1a0e71
mask_value,gene_value,cattribute_name,cattribute_type,recessiveness
0x000000000000000000000000000000000000000000000000000000000000001f,0x000000000000000000000000000000000000000000000000000000000000000b,himalayan,body,D
0x00000000000000000000000000000000000000000000000000000000000003e0,0x0000000000000000000000000000000000000000000000000000000000000160,himalayan,body,R1
0x0000000000000000000000000000000000000000000000000000000000007c00,0x0000000000000000000000000000000000000000000000000000000000002c00,himalayan,body,R2
0x00000000000000000000000000000000000000000000000000000000000f8000,0x0000000000000000000000000000000000000000000000000000000000058000,himalayan,body,R3
0x000000000000000000000000000000000000000000000001f000000000000000,0x0000000000000000000000000000000000000000000000008000000000000000,caffeine,eyes,D
0x00000000000000000000000000000000000000000000003e0000000000000000,0x0000000000000000000000000000000000000000000000100000000000000000,caffeine,eyes,R1
0x0000000000000000000000000000000000000000000007
View keybase.md

Keybase proof

I hereby claim:

  • I am eugeneotto on github.
  • I am eugeneotto (https://keybase.io/eugeneotto) on keybase.
  • I have a public key whose fingerprint is 0C8F A2AC 8AE1 E44F D88E 55B0 7267 A97A 959E 01B5

To claim this, I am signing this object:

View comoesta.rb
#!/usr/bin/ruby
puts "="*80
puts "this is cool"