Browse Source

Fill out details of what each key stores

zip400
Jonathan "Duke" Leto 6 years ago
parent
commit
315bf46157
  1. 58
      zip-0400.rst

58
zip-0400.rst

@ -58,34 +58,40 @@ wallet.dat file. Only public keys and private keys exist in wallet.dat files,
addresses never appear or are stored in any way, they are calculated from
pubkeys by nodes when the wallet is loaded.
Here is a list of each wallet key type with the kind of data that is stored:
* bestblock - data relating to best block, i.e. chaintip
* cscript
* defaultkey
* hdseed
* hdchain
* key - transparent pubkey and privkey, with sha256(pubkey+privkey)
* keymeta - transparent key metadata
* minversion
Here is a concise list of each wallet key type with the kind of data that is stored:
* bestblock - Data relating to best block, i.e. chaintip
* chdseed - Encrypted HD seed
* cscript - Redeem script
* defaultkey - Default transparent address pubkey
* hdseed - Hierarchical Deterministic seed
* hdchain - Hierarchical Deterministic chain code, derived from seed
* key - Transparent pubkey and privkey, with sha256(pubkey+privkey)
* keymeta - Transparent key metadata
* minversion - Minimum wallet version required to open this wallet.dat
* mkey - Master key
* name
* orderposnext - index of next tx
* pool - keypool pub/private keypair
* purpose - purpose of a transparent address
* orderposnext - Index of next tx
* pool - Keypool pub/private keypair
* purpose - Purpose of a transparent address
* sapzaddr - Sapling zaddr viewing key
* sapzkey - Sapling zaddr pubkey and privkey
* sapzkeymeta - metadata about Sapling pubkeys
* tx - transaction data
* sapzkeymeta - Metadata about Sapling pubkeys
* tx - Transaction data
* vkey - Sprout viewing key
* version
* watchs - watch-only address
* witnesscachesize
* watchs - Watch-only address
* witnesscachesize - Shielded Note Witness cache size
* zkey - Sprout zaddr pubkey and privkey
* zkeymeta - metadata about Sprout pubkey
* zkeymeta - Metadata about Sprout pubkey
The types zkey, zkeymeta, sapzkey are sapzkeymeta Zcash additions to the
Bitcoin wallet format, they do not exist in Bitcoin Core wallets. The keys
`sapzkey` and `sapzkeymeta` do not exist in versions of Zcash prior to Sapling.
The key types beginning with z* and sapz* are Zcash additions to the
Bitcoin wallet format, they do not exist in Bitcoin Core wallets.
The following keys only exist in Zcash Sapling-enabled wallets:
* sapzkey
* sapzaddr
* sapzkeymeta
A full description of each key type and the values they store is below.
@ -129,6 +135,11 @@ unix timestamp of when this key was created is stored.
* Size: 12 bytes
mkey
====
Master key for an encrypted wallet.
minversion
===========
* Size: 4 bytes
@ -153,7 +164,6 @@ purpose
===========
* Size: 8 bytes
sapzaddr
=========
@ -179,7 +189,7 @@ version
vkey
=====
Sprout vieing key.
Sprout viewing key.
watchs
======
@ -193,7 +203,7 @@ witnesscachesize
zkey
================
Sprout shielded address public + private key.
Sprout shielded address public key and private key.
zkeymeta
================

Loading…
Cancel
Save