MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / get_bytes

Method get_bytes

test/functional/test_framework/key.py:146–149  ·  view source on GitHub ↗

Retrieve the 32-byte representation of this key.

(self)

Source from the content-addressed store, hash-verified

144 self.set(generate_privkey(), compressed)
145
146 def get_bytes(self):
147 """Retrieve the 32-byte representation of this key."""
148 assert self.valid
149 return self.secret.to_bytes(32, 'big')
150
151 @property
152 def is_valid(self):

Callers 15

generate_keypairFunction · 0.95
run_testMethod · 0.45
set_test_paramsMethod · 0.45
generate_test_keysMethod · 0.45
run_testMethod · 0.45
gen_test_vectorsMethod · 0.45
__init__Method · 0.45
getnewaddressMethod · 0.45
getnewdestinationFunction · 0.45
_fingerprintMethod · 0.45
_deriveMethod · 0.45
_serializeMethod · 0.45

Calls 1

to_bytesMethod · 0.80

Tested by 1