@covenance/dlc
Version:
Crypto and Bitcoin functions for Covenance DLC implementation
22 lines (21 loc) • 438 B
text/typescript
import { Point } from './secp256k1';
export type PrivKey = Uint8Array;
export type PubKey = Point;
export type Signature = {
R: Point;
s: bigint;
};
export type SignatureHex = {
R: string;
s: string;
};
export type AdaptorSignature = {
R_prime: Point;
s_prime: bigint;
};
export type AdaptorSignatureHex = {
R_prime: string;
s_prime: string;
};
export type EventOutcomeHash = Uint8Array;
export type Sighash = Uint8Array;