diff options
author | Seth For Privacy <hello@sethforprivacy.com> | 2023-05-15 12:01:58 -0400 |
---|---|---|
committer | sethforprivacy <hello@sethforprivacy.com> | 2023-05-24 09:39:13 -0400 |
commit | 1684344515eb1ec29fd931cbfacc86584572890f (patch) | |
tree | 6c326750ff9388be229df3219aba4424fe1c7927 /bip-0329.mediawiki | |
parent | 80d44743dcbb85f738fd72116cc62edb31ca34ec (diff) |
Add `spendable` state
Diffstat (limited to 'bip-0329.mediawiki')
-rw-r--r-- | bip-0329.mediawiki | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bip-0329.mediawiki b/bip-0329.mediawiki index 737a75d..3440614 100644 --- a/bip-0329.mediawiki +++ b/bip-0329.mediawiki @@ -62,6 +62,9 @@ Each JSON object must contain 3 or 4 key/value pairs, defined as follows: |- | <tt>origin</tt> | Optional key origin information referencing the wallet associated with the label +|- +| <tt>spendable</tt> +| One of <tt>true</tt> or <tt>false</tt>, denoting if an output should be spendable by the wallet |} The reference is defined for each <tt>type</tt> as follows: @@ -110,6 +113,7 @@ For security reasons no private key types are defined. * An importing wallet may ignore records it does not store, and truncate labels if necessary. A suggested default for maximum label length is 255 characters, and an importing wallet should consider warning the user if truncation is applied. * Wallets importing public key records may derive addresses from them to match against known wallet addresses. * Wallets importing extended public keys may match them against signers, for example in a multisig setup. +* Wallets importing outputs should respect the <tt>spendable</tt> state, defaulting to <tt>true</tt> if none is found ==Backwards Compatibility== @@ -124,7 +128,7 @@ The following fragment represents a wallet label export: { "type": "addr", "ref": "bc1q34aq5drpuwy3wgl9lhup9892qp6svr8ldzyy7c", "label": "Address" } { "type": "pubkey", "ref": "0283409659355b6d1cc3c32decd5d561abaac86c37a353b52895a5e6c196d6f448", "label": "Public Key" } { "type": "input", "ref": "f91d0a8a78462bc59398f2c5d7a84fcff491c26ba54c4833478b202796c8aafd:0", "label": "Input" } -{ "type": "output", "ref": "f91d0a8a78462bc59398f2c5d7a84fcff491c26ba54c4833478b202796c8aafd:1", "label": "Output" } +{ "type": "output", "ref": "f91d0a8a78462bc59398f2c5d7a84fcff491c26ba54c4833478b202796c8aafd:1", "label": "Output" , "spendable" : "false" } { "type": "xpub", "ref": "xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8", "label": "Extended Public Key" } { "type": "tx", "ref": "f546156d9044844e02b181026a1a407abfca62e7ea1159f87bbeaa77b4286c74", "label": "Account #1 Transaction", "origin": "wpkh([d34db33f/84'/0'/1'])" } </pre> |