jmwallet.wallet.bond_registration
jmwallet.wallet.bond_registration
Validation for SeedSigner BIP46 fidelity-bond registration payloads.
Classes
BondRegistrationError
Bases: ValueError
Raised when a SeedSigner BIP46 registration payload is invalid.
Source code in jmwallet/src/jmwallet/wallet/bond_registration.py
35 36 | |
SeedSignerBondRegistration
dataclass
A validated SeedSigner BIP46 registration and its reconstructed script.
Source code in jmwallet/src/jmwallet/wallet/bond_registration.py
39 40 41 42 43 44 45 46 47 48 49 50 51 | |
Attributes
address: str
instance-attribute
derivation_path: str
instance-attribute
index: int
instance-attribute
locktime: int
instance-attribute
locktime_date: str
instance-attribute
master_fingerprint: str
instance-attribute
network: str
instance-attribute
pubkey: str
instance-attribute
witness_script: bytes
instance-attribute
Functions:
parse_bip46_registration_payload(payload_text: str) -> SeedSignerBondRegistration
Parse and independently verify a canonical SeedSigner BIP46 payload.
The payload is a trust boundary. Its compact ASCII encoding, schema, key order, timenumber derivation, public key, and P2WSH address are all checked before callers can persist any of its values.
Source code in jmwallet/src/jmwallet/wallet/bond_registration.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |