Skip to content

Commit

Permalink
block: add nonce field and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tammo committed Oct 20, 2020
1 parent c370c18 commit cf52997
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/Block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,22 @@ export class Block {
senderBalance: EncryptedNumber;
senderAmount: EncryptedNumber;

nonce?: number[];
state?: string;

getDataForSignature(): SignatureData {
const { type, prev, symbol, senderBalance, senderAmount, refBlock, refAsset, refAddress, claimSignature, payload } = this;
const {
type,
prev,
symbol,
senderBalance,
senderAmount,
refBlock,
refAsset,
refAddress,
claimSignature,
payload,
} = this;

return {
type,
Expand Down

0 comments on commit cf52997

Please sign in to comment.