Skip to content

Commit

Permalink
Sync HeartbeatTxnFields in SDK with struct in go-algorand.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmalouf committed Dec 11, 2024
1 parent 625a18d commit f2700fd
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions types/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ type HeartbeatTxnFields struct {
// HbProof is a signature using HeartbeatAddress's partkey, thereby showing it is online.
HbProof HeartbeatProof `codec:"hbprf"`

// HbSeed must be the block seed for the block before this transaction's
// firstValid. It is supplied in the transaction so that Proof can be
// checked at submit time without a ledger lookup, and must be checked at
// evaluation time for equality with the actual blockseed.
// The final three fields are included to allow early, concurrent check of
// the HbProof.

// HbSeed must be the block seed for the this transaction's firstValid
// block. It is the message that must be signed with HbAddress's part key.
HbSeed Seed `codec:"hbsd"`

// HbVoteID must match the HbAddress account's current VoteID.
HbVoteID OneTimeSignatureVerifier `codec:"hbvid"`

// HbKeyDilution must match HbAddress account's current KeyDilution.
HbKeyDilution uint64 `codec:"hbkd"`
}

0 comments on commit f2700fd

Please sign in to comment.