Skip to main content

RootPrivateKey

export interface RootPrivateKey {
  bip32Key: Bip32PrivateKey
  bytes: number[]
  derive(i: number): Bip32PrivateKey
  derivePath(path: number[]): Bip32PrivateKey
  derivePubKey(): PubKey
  deriveSpendingKey(
    accountIndex: number,
    i: number
  ): Bip32PrivateKey
  deriveSpendingRootKey(accountIndex: number): Bip32PrivateKey
  deriveStakingKey(
    accountIndex: number,
    i: number
  ): Bip32PrivateKey
  deriveStakingRootKey(accountIndex: number): Bip32PrivateKey
  entropy: number[]
  sign(message: number[]): Signature
  toPhrase(dict: string[]): string[]
}

Properties

bip32Key

rootPrivateKey.bip32Key satisfies Bip32PrivateKey

bytes

rootPrivateKey.bytes satisfies number[]

derive

rootPrivateKey.derive satisfies (i: number) => Bip32PrivateKey

derivePath

rootPrivateKey.derivePath satisfies (path: number[]) => Bip32PrivateKey

derivePubKey

rootPrivateKey.derivePubKey satisfies () => PubKey

deriveSpendingKey

rootPrivateKey.deriveSpendingKey satisfies (
  accountIndex: number,
  i: number
) => Bip32PrivateKey

deriveSpendingRootKey

rootPrivateKey.deriveSpendingRootKey satisfies (accountIndex: number) => Bip32PrivateKey

deriveStakingKey

rootPrivateKey.deriveStakingKey satisfies (
  accountIndex: number,
  i: number
) => Bip32PrivateKey

deriveStakingRootKey

rootPrivateKey.deriveStakingRootKey satisfies (accountIndex: number) => Bip32PrivateKey

entropy

rootPrivateKey.entropy satisfies number[]

sign

rootPrivateKey.sign satisfies (message: number[]) => Signature

toPhrase

rootPrivateKey.toPhrase satisfies (dict: string[]) => string[]