Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/mod.ts>Core.Bip32PrivateKey.from_128_xprv

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Very Popular
Go to Latest
method Core.Bip32PrivateKey.from_128_xprv
import { Core } from "https://deno.land/x/lucid@0.5.2/mod.ts";
const { Bip32PrivateKey } = Core;

128-byte xprv a key format in Cardano that some software still uses or requires the traditional 96-byte xprv is simply encoded as prv | chaincode however, because some software may not know how to compute a public key from a private key, the 128-byte inlines the public key in the following format prv | pub | chaincode so be careful if you see the term "xprv" as it could refer to either one our library does not require the pub (instead we compute the pub key when needed)

Parameters

bytes: Uint8Array