Skip to content

Ed25519BIP32

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

Ed25519BIP32

Used for deriving Seed Phrases for the HDWallet

public struct Ed25519BIP32 

Initializers

init(seed:)

public init(seed: Data) 

Methods

derivePath(path:)

Derive a hierarchical deterministic key and chain code from a derivation path string following the BIP32 standard.

public func derivePath(path: String) throws -> (key: Data, chainCode: Data) 

Parameters

  • path: A string representing the derivation path to use for the key derivation.

Throws

An AptosError object with the type invalidDerivationPath if the derivation path provided is invalid.

Returns

A tuple containing the derived key and chain code.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally