UNPKG

@transmute/bls12381-key-pair

Version:
9 lines (7 loc) 301 B
import { getPublicKeyFromPublicKeyJwk } from './getPublicKeyFromPublicKeyJwk'; export const getKeyPairFromPrivateKeyJwk = (privateKeyJwk: any) => { return { publicKey: getPublicKeyFromPublicKeyJwk(privateKeyJwk), privateKey: Uint8Array.from(Buffer.from(privateKeyJwk.d, 'base64')), }; };