@transmute/bls12381-key-pair
Version:
``` npm i @transmute/bls12381-key-pair@latest --save ```
28 lines (27 loc) • 969 B
TypeScript
import { JsonWebKey2020, Bls12381G1Key2020, Bls12381G2Key2020 } from './types';
export declare const fromJsonWebKey2020: (k: JsonWebKey2020) => {
publicKey: Uint8Array;
privateKey?: Uint8Array | undefined;
};
export declare const fromBls12381G1Key2020: (k: Bls12381G1Key2020) => {
publicKey: Uint8Array;
privateKey?: Uint8Array | undefined;
};
export declare const fromBls12381G2Key2020: (k: Bls12381G2Key2020) => {
publicKey: Uint8Array;
privateKey?: Uint8Array | undefined;
};
export declare const importableTypes: {
JsonWebKey2020: (k: JsonWebKey2020) => {
publicKey: Uint8Array;
privateKey?: Uint8Array | undefined;
};
Bls12381G1Key2020: (k: Bls12381G1Key2020) => {
publicKey: Uint8Array;
privateKey?: Uint8Array | undefined;
};
Bls12381G2Key2020: (k: Bls12381G2Key2020) => {
publicKey: Uint8Array;
privateKey?: Uint8Array | undefined;
};
};