piermesh/src/Sponge/Protocols/cryptography.py

18 lines
582 B
Python
Raw Normal View History

2024-07-28 11:21:15 +00:00
async def filter(completeMessage, recipientNode, todo):
2024-08-01 01:00:46 +00:00
"""
Cryptographic operations protocol
2024-08-01 21:09:50 +00:00
`🔗 Cryptography Source <https://git.utopic.work/PierMesh/piermesh/src/branch/main/Sponge/Protocols/cryptography.py>`_
2024-08-01 01:00:46 +00:00
"""
2024-07-28 11:21:15 +00:00
todo.append(
{
"action": "keyDeriveDH",
"data": {
"publicKey": completeMessage["data"]["publicKey"],
"params": completeMessage["data"]["params"],
"recipientNode": recipientNode,
},
}
)
2024-08-01 01:00:46 +00:00
# logging.log(10, "Adding cryptography request")