Fix address.*OutputScript and ECPairOptions rng
This commit is contained in:
parent
848c8190c3
commit
329809fa4a
4 changed files with 6 additions and 6 deletions
ts_src
|
@ -64,7 +64,7 @@ export function toBech32(
|
|||
return bech32.encode(prefix, words);
|
||||
}
|
||||
|
||||
export function fromOutputScript(output: Buffer, network: Network): string {
|
||||
export function fromOutputScript(output: Buffer, network?: Network): string {
|
||||
// TODO: Network
|
||||
network = network || networks.bitcoin;
|
||||
|
||||
|
@ -84,7 +84,7 @@ export function fromOutputScript(output: Buffer, network: Network): string {
|
|||
throw new Error(bscript.toASM(output) + ' has no matching Address');
|
||||
}
|
||||
|
||||
export function toOutputScript(address: string, network: Network): Buffer {
|
||||
export function toOutputScript(address: string, network?: Network): Buffer {
|
||||
network = network || networks.bitcoin;
|
||||
|
||||
let decodeBase58: Base58CheckResult | undefined;
|
||||
|
|
|
@ -16,7 +16,7 @@ const isOptions = typeforce.maybe(
|
|||
interface ECPairOptions {
|
||||
compressed?: boolean;
|
||||
network?: Network;
|
||||
rng?(arg0: Buffer): Buffer;
|
||||
rng?(arg0: number): Buffer;
|
||||
}
|
||||
|
||||
export interface ECPairInterface {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue