Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a hash prefix for ARCs-related hashes #3298

Merged
merged 1 commit into from
Dec 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion protocol/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ type HashID string
// Hash IDs for specific object types, in lexicographic order.
// Hash IDs must be PREFIX-FREE (no hash ID is a prefix of another).
const (
AppIndex HashID = "appID"
AppIndex HashID = "appID"

// ARCReserved is used to reserve prefixes starting with `arc` to
// ARCs-related hashes https://github.com/algorandfoundation/ARCs
// The prefix for ARC-XXXX should start with:
// "arcXXXX" (where "XXXX" is the 0-padded number of the ARC)
// For example ARC-0003 can use any prefix starting with "arc0003"
ARCReserved HashID = "arc"

AuctionBid HashID = "aB"
AuctionDeposit HashID = "aD"
AuctionOutcomes HashID = "aO"
Expand Down