account/recovery: add struct for auctioneer data
Add a new type (`auctioneerData`) containing the auctioneer data for
each evironment (mainnet, testnet and regtest).
@@ -17,6 +17,29 @@ var (
DefaultAccountKeyWindow uint32 = 500
)
+const (
+ mainnetAuctioneerKey = "028e87bdd134238f8347f845d9ecc827b843d0d1e27cd" +
+ "cb46da704d916613f4fce"
+ testnetAuctioneerKey = "025dea8f5c67fb3bdfffb3123d2b7045dc0a3c75e822f" +
+ "abb39eb357480e64c4a8a"
+)
+
+// GetAuctioneerData returns the auctioneer data for a given environment.
+func GetAuctioneerData(network string) (string, uint32) {
+ var auctioneerKey string
+ var fstBlock uint32
+
+ switch network {
+ case "mainnet":
+ auctioneerKey = mainnetAuctioneerKey
+ fstBlock = 648168
+ case "testnet":
+ auctioneerKey = testnetAuctioneerKey
+ fstBlock = 1834898
+ }
+ return auctioneerKey, fstBlock
+}
+
// GenerateRecoveryKeys generates a list of key descriptors for all possible
// keys that could be used for trader accounts, up to a hard coHashded limit.
func GenerateRecoveryKeys(ctx context.Context, accountTarget uint32,
