Skip to content

Function to put content to mix-net envelope #6

@sirex

Description

@sirex

For crypto part use https://cryptography.io/en/latest/hazmat/primitives/asymmetric/rsa/

Here is how this function could look:

envelope = create_envelope(nodes, content)

nodes should be list of tuples tuple has two elements: node's IP address and public key.

content should be any JSON serializable object.

Returned envelope can be deserialized with primary keys of nodes in reverse order.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions