Added some transaction methods, and removed all internal use of base64
This commit is contained in:
parent
9922864da4
commit
e43d23235b
10 changed files with 107 additions and 41 deletions
src
|
@ -6,7 +6,7 @@ var Script = function (data) {
|
|||
if (!data) {
|
||||
this.buffer = [];
|
||||
} else if ("string" == typeof data) {
|
||||
this.buffer = Crypto.util.base64ToBytes(data);
|
||||
this.buffer = Crypto.util.hexToBytes(data);
|
||||
} else if (util.isArray(data)) {
|
||||
this.buffer = data;
|
||||
} else if (data instanceof Script) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue