Crypto class

Implemented types

Constructors

Crypto(ICore core, {IKeyChain? keyChain, ICryptoUtils? utils, IRelayAuth? relayAuth})

Properties

core ICore
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
keyChain IKeyChain?
getter/setter pairoverride
name String
no setteroverride
relayAuth IRelayAuth?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
utils ICryptoUtils?
getter/setter pair

Methods

decode(String topic, String encoded, {DecodeOptions? options}) Future<String>
override
deleteKeyPair(String publicKey) Future<void>
override
deleteSymKey(String topic) Future<void>
override
encode(String topic, Map<String, dynamic> payload, {EncodeOptions? options}) Future<String>
override
generateKeyPair() Future<String>
override
generateSharedKey(String selfPublicKey, String peerPublicKey, {String? overrideTopic}) Future<String>
override
getClientId() Future<String>
override
getPayloadType(String encoded) int
override
getUtils() ICryptoUtils
override
hasKeys(String tag) bool
override
init() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSymKey(String symKey, {String? overrideTopic}) Future<String>
override
signJWT(String aud) Future<String>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

CLIENT_SEED → const String
CRYPTO_CLIENT_SEED → const String
CRYPTO_CONTEXT → const String