navio-blsct
Version:
TypeScript bindings for the `libblsct` library used by the [Navio](https://nav.io/) blockchain to construct confidential transactions based on the BLS12-381 curve.
12 lines (11 loc) • 446 B
TypeScript
import { Scalar } from './scalar';
import { PublicKey } from './keys/publicKey';
import { ManagedObj } from './managedObj';
export declare class Signature extends ManagedObj {
constructor(obj: any);
static generate(privKey: Scalar, msg: string): Signature;
verify(pubKey: PublicKey, msg: string): boolean;
value(): any;
serialize(): string;
static deserialize(this: new (obj: any) => Signature, hex: string): Signature;
}