Keychain class

Annotations
  • @freezed

Constructors

Keychain({@Uint8ListConverter() Uint8List? seed, @Default(1) int version, @Default({}) Map<String, Service> services})
const
factory
Keychain.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $KeychainCopyWith<Keychain>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed Uint8List?
no setterinherited
services Map<String, Service>
no setterinherited
version int
no setterinherited

Methods

buildTransaction(Transaction transaction, String serviceName, int index, {String pathSuffix = '', String? curve = 'ed25519', String? hashAlgo = 'sha256'}) → ({KeyPair keyPair, Transaction transaction})
copyWithService(String name, String derivationPath, {String curve = 'ed25519', String hashAlgo = 'sha256'}) Keychain
deriveAddress(String serviceName, {int index = 0, String pathSuffix = ''}) Uint8List
deriveKeypair(String serviceName, {int index = 0, String pathSuffix = ''}) KeyPair
ecEncryptServiceSeed(String service, List<String> publicKeys, {String pathSuffix = ''}) → ({List<AuthorizedKey> authorizedPublicKeys, Uint8List secret})
encode() Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDID() Map<String, dynamic>
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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