Skip to content

Commit

Permalink
chore: add dist folder to github
Browse files Browse the repository at this point in the history
  • Loading branch information
emjshrx authored and theanmolsharma committed Oct 2, 2023
1 parent 72161be commit 9ab6600
Show file tree
Hide file tree
Showing 10 changed files with 8,935 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
coverage
Expand Down
7 changes: 7 additions & 0 deletions dist/encoding.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Buffer } from 'buffer';
export declare const encodeSilentPaymentAddress: (scanKey: Uint8Array, spendKey: Uint8Array, hrp?: string, version?: number) => string;
export declare const decodeSilentPaymentAddress: (address: string, hrp?: string) => {
scanKey: Buffer;
spendKey: Buffer;
};
export declare const createLabeledSilentPaymentAddress: (scanKey: Uint8Array, spendKey: Uint8Array, m: Buffer, hrp?: string, version?: number) => string;
4 changes: 4 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export { decodeSilentPaymentAddress, encodeSilentPaymentAddress, } from './encoding.ts';
export { hashOutpoints, calculateSumOfPrivateKeys } from './utility.ts';
export { createOutputs } from './outputs.ts';
export { scanOutputs } from './scanning.ts';
20 changes: 20 additions & 0 deletions dist/interface.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/// <reference types="node" />
export type Outpoint = {
txid: string;
vout: number;
};
export type PrivateKey = {
key: string;
isXOnly: boolean;
};
export type RecipientAddress = {
address: string;
amount: number;
};
export type Output = {
pubkey: Buffer;
value: number;
};
export type LabelMap = {
[key: string]: string;
};
2 changes: 2 additions & 0 deletions dist/outputs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { Outpoint, Output, PrivateKey, RecipientAddress } from './interface.ts';
export declare const createOutputs: (inputPrivateKeys: PrivateKey[], outpoints: Outpoint[], recipientAddresses: RecipientAddress[], hrp?: string) => Output[];
3 changes: 3 additions & 0 deletions dist/scanning.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { LabelMap } from './interface.ts';
import { Buffer } from 'buffer';
export declare const scanOutputs: (scanPrivateKey: Buffer, spendPublicKey: Buffer, sumOfInputPublicKeys: Buffer, outpointHash: Buffer, outputs: Buffer[], labels?: LabelMap) => Map<string, Buffer>;
Loading

0 comments on commit 9ab6600

Please sign in to comment.