Structures
The following structures are available globally.
-
Declaration
Swift
public struct Base58 -
A set of Base58Check coding methods.
See more// Encode bytes to address let address = Base58Check.encode([versionByte] + pubkeyHash) // Decode address to bytes guard let payload = Base58Check.decode(address) else { // Invalid checksum or Base58 coding throw SomeError() } let versionByte = payload[0] let pubkeyHash = payload.dropFirst()Declaration
Swift
public struct Base58Check -
A struct used to provide a number of functions needed to handle derivation paths and derive nodes for creating HD key pairs
See moreDeclaration
Swift
public struct HD -
A struct representing a both a
See morePrivateKeyandPublicKeywith helper methods to create various kindsDeclaration
Swift
public struct KeyPair -
A list of words which can generate a private key.
See moreDeclaration
Swift
public struct Mnemonic : Equatable, Codable -
A struct representing a PrivateKey
See moreDeclaration
Swift
public struct PrivateKey : Codableextension PrivateKey: CustomStringConvertibleextension PrivateKey: Equatable -
A struct representing a PublicKey
See moreDeclaration
Swift
public struct PublicKey : Codableextension PublicKey: CustomStringConvertibleextension PublicKey: Equatable
Install in Dash
Structures Reference