-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates for new heartbeat transaction type support.
- Loading branch information
Showing
5 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package types | ||
|
||
// HeartbeatTxnFields captures the fields used for an account to prove it is | ||
// online (really, it proves that an entity with the account's part keys is able | ||
// to submit transactions, so it should be able to propose/vote.) | ||
type HeartbeatTxnFields struct { | ||
_struct struct{} `codec:",omitempty,omitemptyarray"` | ||
|
||
// HeartbeatAddress is the account this txn is proving onlineness for. | ||
HbAddress Address `codec:"hbad"` | ||
|
||
// HbProof is a signature using HeartbeatAddress's partkey, thereby showing it is online. | ||
HbProof OneTimeSignature `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. | ||
HbSeed Seed `codec:"hbsd"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters