MCPcopy Create free account
hub / github.com/ElementsProject/lightning / pubkey

Function pubkey

tests/test_opening.py:3693–3694  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

3691 MAX_INFLIGHT_OPENS = 3
3692
3693 def pubkey(index):
3694 return CCPrivateKey(index.to_bytes(32, "big")).public_key.format(compressed=True)
3695
3696 def open_channel2(index, chain_hash):
3697 keys = [pubkey(index * 7 + offset + 1) for offset in range(7)]

Callers 1

open_channel2Function · 0.70

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected