Rudolph's dispatch firmware
Inspect the Gno source, then open Help and Eval to query it.
1package wrapping
2
3import (
4 "crypto/sha256"
5 "encoding/hex"
6 "strconv"
7 "strings"
8)
9
10// Dispatch returns the stamp for a numbered parcel.
11func Dispatch(parcel int) string {
12 digest := sha256.Sum256([]byte("gnoel/dispatch/v2/" + strconv.Itoa(parcel)))
13 return "SNOWBALL-" + strings.ToUpper(hex.EncodeToString(digest[:6]))
14}