MCPcopy Create free account
hub / github.com/ElementsProject/elements / get_bytes

Method get_bytes

test/functional/test_framework/key.py:359–362  ·  view source on GitHub ↗

Retrieve the 32-byte representation of this key.

(self)

Source from the content-addressed store, hash-verified

357 self.set(generate_privkey(), compressed)
358
359 def get_bytes(self):
360 """Retrieve the 32-byte representation of this key."""
361 assert(self.valid)
362 return self.secret.to_bytes(32, 'big')
363
364 @property
365 def is_valid(self):

Callers 15

test_external_inputsMethod · 0.95
test_double_spendMethod · 0.95
run_testMethod · 0.95
run_testMethod · 0.95
run_testMethod · 0.95
init_keysMethod · 0.95
init_keysMethod · 0.95
run_testMethod · 0.95
get_keysMethod · 0.95
witness_script_testMethod · 0.95
get_generate_keyFunction · 0.95

Calls

no outgoing calls

Tested by 4

test_external_inputsMethod · 0.76
test_double_spendMethod · 0.76