|
| 1 | +interface XOnlyPointAddTweakResult { |
| 2 | + parity: 1 | 0; |
| 3 | + xOnlyPubkey: Uint8Array; |
| 4 | +} |
| 5 | + |
| 6 | +export declare function isPoint(p: Uint8Array): boolean; |
| 7 | +export declare function isPointCompressed(p: Uint8Array): boolean; |
| 8 | +export declare function isXOnlyPoint(p: Uint8Array): boolean; |
| 9 | +export declare function isPrivate(d: Uint8Array): boolean; |
| 10 | +export declare function pointAdd(pA: Uint8Array, pB: Uint8Array, compressed?: boolean): Uint8Array | null; |
| 11 | +export declare function pointAddScalar(p: Uint8Array, tweak: Uint8Array, compressed?: boolean): Uint8Array | null; |
| 12 | +export declare function pointCompress(p: Uint8Array, compressed?: boolean): Uint8Array; |
| 13 | +export declare function pointFromScalar(d: Uint8Array, compressed?: boolean): Uint8Array | null; |
| 14 | +export declare function xOnlyPointFromScalar(d: Uint8Array): Uint8Array; |
| 15 | +export declare function xOnlyPointFromPoint(p: Uint8Array): Uint8Array; |
| 16 | +export declare function pointMultiply(p: Uint8Array, tweak: Uint8Array, compressed?: boolean): Uint8Array | null; |
| 17 | +export declare function privateAdd(d: Uint8Array, tweak: Uint8Array): Uint8Array | null; |
| 18 | +export declare function privateSub(d: Uint8Array, tweak: Uint8Array): Uint8Array | null; |
| 19 | +export declare function privateNegate(d: Uint8Array): Uint8Array; |
| 20 | +export interface XOnlyPointAddTweakResult { |
| 21 | + parity: 1 | 0; |
| 22 | + xOnlyPubkey: Uint8Array; |
| 23 | +} |
| 24 | +export declare function xOnlyPointAddTweak(p: Uint8Array, tweak: Uint8Array): XOnlyPointAddTweakResult | null; |
| 25 | +export declare type TweakParity = 1 | 0; |
| 26 | +export declare function xOnlyPointAddTweakCheck(point: Uint8Array, tweak: Uint8Array, resultToCheck: Uint8Array, tweakParity?: TweakParity): boolean; |
| 27 | +export declare function sign(h: Uint8Array, d: Uint8Array, e?: Uint8Array): Uint8Array; |
| 28 | +export interface RecoverableSignature { |
| 29 | + signature: Uint8Array; |
| 30 | + recoveryId: RecoveryIdType; |
| 31 | +} |
| 32 | +export declare function signRecoverable(h: Uint8Array, d: Uint8Array, e?: Uint8Array): RecoverableSignature; |
| 33 | +export declare function signSchnorr(h: Uint8Array, d: Uint8Array, e?: Uint8Array): Uint8Array; |
| 34 | +export declare function verify(h: Uint8Array, Q: Uint8Array, signature: Uint8Array, strict?: boolean): boolean; |
| 35 | +export declare type RecoveryIdType = 0 | 1 | 2 | 3; |
| 36 | +export declare function recover(h: Uint8Array, signature: Uint8Array, recoveryId: RecoveryIdType, compressed?: boolean): Uint8Array | null; |
| 37 | +export declare function verifySchnorr(h: Uint8Array, Q: Uint8Array, signature: Uint8Array): boolean; |
| 38 | + |
0 commit comments