We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a14b97 commit d70b8cdCopy full SHA for d70b8cd
lib/proof.js
@@ -58,7 +58,9 @@ class WrappedProof {
58
*/
59
60
read(data, off) {
61
- this._proof.read(data, off, BLAKE2b, HASH_BITS);
+ const pos = this._proof.read(data, off, BLAKE2b, HASH_BITS);
62
+ this._raw = data.slice(off, pos);
63
+ this._size = pos - off;
64
return this;
65
}
66
@@ -68,6 +70,8 @@ class WrappedProof {
68
70
69
71
72
readBR(br) {
73
+ this._raw = null;
74
+ this._size = null;
75
this._proof.readBR(br, BLAKE2b, HASH_BITS);
76
77
@@ -89,7 +93,6 @@ class WrappedProof {
89
93
90
94
91
95
decode(data) {
92
- this._raw = data;
96
this.read(data, 0);
97
98
0 commit comments