1 |
|
2 | export declare function ripemd160(buffer: Buffer): Buffer;
|
3 | export declare function sha1(buffer: Buffer): Buffer;
|
4 | export declare function sha256(buffer: Buffer): Buffer;
|
5 | export declare function hash160(buffer: Buffer): Buffer;
|
6 | export declare function hash256(buffer: Buffer): Buffer;
|
7 | export declare const TAGS: readonly ["BIP0340/challenge", "BIP0340/aux", "BIP0340/nonce", "TapLeaf", "TapBranch", "TapSighash", "TapTweak", "KeyAgg list", "KeyAgg coefficient"];
|
8 | export type TaggedHashPrefix = typeof TAGS[number];
|
9 | type TaggedHashPrefixes = {
|
10 | [key in TaggedHashPrefix]: Buffer;
|
11 | };
|
12 |
|
13 | export declare const TAGGED_HASH_PREFIXES: TaggedHashPrefixes;
|
14 | export declare function taggedHash(prefix: TaggedHashPrefix, data: Buffer): Buffer;
|
15 | export {};
|