Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add dist folder to git #6

Merged
merged 3 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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