xrpl
    Preparing search index...

    Function walletFromSecretNumbers

    • Derives a wallet from secret numbers. NOTE: This uses a default algorithm of secp256k1 to match the popular wallet Xumm (aka Xaman)'s behavior. Other Wallet factories such as Wallet.fromSeed infer the algorithm from the seed prefix instead, so the default here intentionally differs from those.

      Parameters

      • secretNumbers: string | string[]

        A string consisting of 8 times 6 numbers (whitespace delimited) used to derive a wallet.

      • Optionalopts: { algorithm?: ECDSA; masterAddress?: string }

        (Optional) Options to derive a Wallet.

        • Optionalalgorithm?: ECDSA

          The digital signature algorithm to generate an address for. Defaults to ECDSA.secp256k1 to remain compatible with Xaman-issued secret numbers.

        • OptionalmasterAddress?: string

          Include if a Wallet uses a Regular Key Pair. It must be the master address of the account.

      Returns Wallet

      A Wallet derived from secret numbers.

      ValidationError if unable to derive private key from secret number input.