File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export class Block {
121
121
this . setMeta ( 'nonce' , this . cipherSuite . createBlockNonce ( this . nonceSize ) ) ;
122
122
}
123
123
async createSignature ( wallet ) {
124
- const binary = await this . exportDataBinary ( ) ;
124
+ const binary = this . block . hash ;
125
125
const signature = await wallet . signPartial ( binary ) ;
126
126
return signature ;
127
127
}
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ export class Wallet extends CryptoID {
23
23
}
24
24
} ) ;
25
25
await txBlock . finalize ( ) ;
26
+ await txBlock . sign ( this ) ;
26
27
await txBlock . createReceipt ( ) ;
27
28
await txBlock . receipt . finalize ( ) ;
29
+ await txBlock . receipt . sign ( this ) ;
28
30
console . log ( 'Transaction Block:' , txBlock . block ) ;
29
31
return txBlock ;
30
32
}
You can’t perform that action at this time.
0 commit comments