scrypt-ts
Advanced tools
Comparing version 0.1.5-beta.19 to 0.1.5-beta.20
@@ -17,2 +17,3 @@ import { Signer, SignatureRequest, SignatureResponse, SignTransactionOptions } from "../abstract-signer"; | ||
get addresses(): string[]; | ||
pushPrivateKey(privateKey: bsv.PrivateKey | bsv.PrivateKey[]): void; | ||
getDefaultAddress(): Promise<bsv.Address>; | ||
@@ -19,0 +20,0 @@ getDefaultPubKey(): Promise<bsv.PublicKey>; |
@@ -92,2 +92,7 @@ "use strict"; | ||
}); | ||
TestWallet.prototype.pushPrivateKey = function (privateKey) { | ||
var _a; | ||
var keys = privateKey instanceof Array ? privateKey : [privateKey]; | ||
(_a = this._privateKeys).push.apply(_a, keys); | ||
}; | ||
TestWallet.prototype.getDefaultAddress = function () { | ||
@@ -94,0 +99,0 @@ return Promise.resolve(this._defaultPrivateKey.toAddress()); |
@@ -16,3 +16,3 @@ import { Bytes, AbstractContract, Int } from "scryptlib"; | ||
* Converts a literal to ByteString. | ||
* If isUtf8 is false, then `str` should be in the format of hex literal, i.e. `/^([0-9a-fA-F]{2})*$/` | ||
* If not passing `isUtf8`, then `str` should be in the format of hex literal, i.e. `/^([0-9a-fA-F]{2})*$/` | ||
* Otherwise, `str` should be in the format of utf8 literal, i.e. `hello world` | ||
@@ -19,0 +19,0 @@ * @param {string} str literal string, can be hex literal or utf8 literal, depends on isUtf8 marker |
@@ -19,3 +19,3 @@ "use strict"; | ||
* Converts a literal to ByteString. | ||
* If isUtf8 is false, then `str` should be in the format of hex literal, i.e. `/^([0-9a-fA-F]{2})*$/` | ||
* If not passing `isUtf8`, then `str` should be in the format of hex literal, i.e. `/^([0-9a-fA-F]{2})*$/` | ||
* Otherwise, `str` should be in the format of utf8 literal, i.e. `hello world` | ||
@@ -22,0 +22,0 @@ * @param {string} str literal string, can be hex literal or utf8 literal, depends on isUtf8 marker |
{ | ||
"name": "scrypt-ts", | ||
"version": "0.1.5-beta.19", | ||
"version": "0.1.5-beta.20", | ||
"description": "A toolset for building sCrypt smart contract applications on Bitcoin SV network written in typescript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
343869
7020