-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix typo * add ring root * real tickets verifier * update bandersnatch * wip * fix * fix * fix * wip * full test ready * remove serialze * revert format * remove format * add consts * use data * fix * fix
- Loading branch information
Showing
12 changed files
with
248 additions
and
92 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,33 @@ | ||
import Foundation | ||
|
||
public enum SigningContext { | ||
/// XA = $jam_available: Ed25519 Availability assurances. | ||
public static let available = Data("jam_available".utf8) | ||
|
||
/// XB = $jam_beefy: bls Accumulate-result-root-mmr commitment. | ||
public static let beefy = Data("jam_beefy".utf8) | ||
|
||
/// XE = $jam_entropy: On-chain entropy generation. | ||
public static let entropy = Data("jam_entropy".utf8) | ||
|
||
/// XF = $jam_fallback_seal: Bandersnatch Fallback block seal. | ||
public static let fallbackSeal = Data("jam_fallback_seal".utf8) | ||
|
||
/// XG = $jam_guarantee: Ed25519 Guarantee statements. | ||
public static let guarantee = Data("jam_guarantee".utf8) | ||
|
||
/// XI = $jam_announce: Ed25519 Audit announcement statements. | ||
public static let announce = Data("jam_announce".utf8) | ||
|
||
/// XT = $jam_ticket_seal: Bandersnatch Ringvrf Ticket generation and regular block seal. | ||
public static let ticketSeal = Data("jam_ticket_seal".utf8) | ||
|
||
/// XU = $jam_audit: Bandersnatch Audit selection entropy. | ||
public static let audit = Data("jam_audit".utf8) | ||
|
||
/// X_top = $jam_valid: Ed25519 Judgements for valid work-reports. | ||
public static let valid = Data("jam_valid".utf8) | ||
|
||
/// X_bot = $jam_invalid: Ed25519 Judgements for invalid work-reports. | ||
public static let invalid = Data("jam_invalid".utf8) | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// swiftlint:disable force_try | ||
// swiftformat:disable hoistTry | ||
import Foundation | ||
import Testing | ||
|
||
|
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
Oops, something went wrong.