Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active July 17, 2019 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/2b435347af87ee6700c9b251e94b72e8 to your computer and use it in GitHub Desktop.
Save miguelmota/2b435347af87ee6700c9b251e94b72e8 to your computer and use it in GitHub Desktop.
GraphQL types for Ethereum keystore
type Keystore {
address: String
crypto: KeystoreCrypto
id: String
version: Int
}
type Crypto {
cipher: String
cipherparams: CipherParams
kdf:String
kdfparams: KDFParams
mac: String
}
type CipherParams {
iv: String
}
type KDFParams {
dklen: Int
n: Int
p: Int
r: Int
salt: String
}
address
crypto {
cipher
cipherparams {
iv
}
kdf
kdfparams {
dklen
n
p
r
salt
}
mac
}
id
version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment