Standard
SEP-001 standard interface.
Source code in nucleus/sdk/expose/sep.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
|
add_key(kr)
Add signature/recipient keyring.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kr |
Keyring
|
Keyring implementation |
required |
Returns:
Type | Description |
---|---|
None
|
None |
Source code in nucleus/sdk/expose/sep.py
67 68 69 70 71 72 73 |
|
add_metadata(meta)
Add metadata to payload.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
meta |
Metadata
|
The metadata type to store in payload |
required |
Returns:
Type | Description |
---|---|
None
|
None |
Source code in nucleus/sdk/expose/sep.py
75 76 77 78 79 80 81 |
|
serialize()
Serialize the standard according to the defined serialization method and crypto operation.
Returns:
Type | Description |
---|---|
Serializer
|
the ready-state serializer |
Source code in nucleus/sdk/expose/sep.py
99 100 101 102 103 104 105 106 107 108 109 110 111 |
|
set_operation(crypto)
Set cryptography operation type to use during serialization.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
crypto |
Type[Crypto]
|
The crypto operation type |
required |
Returns:
Type | Description |
---|---|
None
|
None |
Source code in nucleus/sdk/expose/sep.py
83 84 85 86 87 88 89 |
|
set_serialization(serializer)
Set the serializer to use during serialization.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
serializer |
Type[Serializer]
|
The serializer type |
required |
Returns:
Type | Description |
---|---|
None
|
None |
Source code in nucleus/sdk/expose/sep.py
91 92 93 94 95 96 97 |
|