-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72161be
commit 9ab6600
Showing
10 changed files
with
8,935 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ pnpm-debug.log* | |
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; |
Oops, something went wrong.