BrainKey
public struct BrainKey : Equatable
Undocumented
-
Undocumented
Declaration
Swift
public let words: [String] -
Undocumented
Declaration
Swift
public init(words: [String]) -
Generates random
BrainKeyusing default seed dictionary of words.Declaration
Swift
public static func generate(count: Int = DCore.Constant.brainKeyWordCount) -> BrainKeyParameters
countNumber of words to put into generated
BrainKey.Return Value
BrainKeyconsisting of random words. -
Generates random
BrainKeyfrom provided dictionary of words.Declaration
Swift
public static func generate( usingSeedDictionary seedDictionary: [String], count: Int = DCore.Constant.brainKeyWordCount) -> BrainKeyParameters
seedDictionaryDictionary of words to use to generate brain key.
countNumber of words to put into generated
BrainKey.Return Value
BrainKeyconsisting of random words.
-
Undocumented
Declaration
Swift
public func asECKeyPair() throws -> ECKeyPair -
Converts
BrainKeytoECKeyPairDeclaration
Swift
public func asECKeyPair(normalized: Bool = true, sequence: Int = 0) throws -> ECKeyPairParameters
normalizedNormalized brain key will be uppercased prior to generating key pair.
sequenceSequence number to be used to generate the key pair.
Return Value
View on GitHub
Install in Dash
BrainKey Structure Reference