MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / toOpensslPublickey

Function toOpensslPublickey

plugins/CryptMessage/CryptMessage.py:55–59  ·  view source on GitHub ↗
(publickey)

Source from the content-addressed store, hash-verified

53
54
55def toOpensslPublickey(publickey):
56 publickey_bin = btctools.encode_pubkey(publickey, "bin")
57 publickey_bin = publickey_bin[1:]
58 publickey_openssl = b'\x02\xca\x00 ' + publickey_bin[:32] + b'\x00 ' + publickey_bin[32:]
59 return publickey_openssl

Callers 2

eciesEncryptFunction · 0.85
getEccFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected