Ed25519HDKey - p2p-org/solana-swift GitHub Wiki
Ed25519HDKey
public struct Ed25519HDKey
Nested Type Aliases
Hex
public typealias Hex = String
Path
public typealias Path = String
Properties
hardenedOffset
public static let hardenedOffset = 0x80000000
Methods
getMasterKeyFromSeed(_:)
public static func getMasterKeyFromSeed(_ seed: Hex) -> Result<Keys, Error>
getPublicKey(privateKey:withZeroBytes:)
public static func getPublicKey(privateKey: Data, withZeroBytes: Bool = true) throws -> Data
derivePath(_:seed:offSet:)
public static func derivePath(_ path: Path, seed: Hex, offSet: Int = hardenedOffset) -> Result<Keys, Error>