Crypto
Members
Name | Type | Description |
---|---|---|
client | Client | TODO |
context | string | TODO |
keychain | - | TODO |
logger | Logger | Pino logger |
name | string | TODO |
Mehods
init
Description
TODO
Example
init(): Promise<void>
decode
Description
TODO
Interfaces
Example
decode(topic: string, encrypted: string): Promise<JsonRpcPayload>
decrypt
Description
TODO
Example
decrypt(topic: string, encrypted: string): Promise<string>
encode
Description
TODO
Interfaces
Example
encode(topic: string, payload: JsonRpcPayload): Promise<string>
encrypt
Description
TODO
Example
encrypt(topic: string, message: string): Promise<string>
generateKeyPair
Description
TODO
Example
generateKeyPair(): Promise<string>
generateSharedKey
Description
TODO
Interfaces
Example
generateSharedKey(self: CryptoTypes.Participant, peer: CryptoTypes.Participant, overrideTopic?: string): Promise<string>
hasKeys
Description
TODO
Example
hasKeys(tag: string): Promise<boolean>