Files
ark/pkg/common/network.go
Pietralberto Mazza 19cbaeba40 Ark encoding (#6)
* Fix naming

* Fix Ark key encoding & Add new encoding for address, relay and url

* Fix submodule name

* Fix test target

* Update go deps

* Fix prefixes && Use bech32m && Encode asp and user keys in address

* Fix tests

* Parametrize ark prefix && Add network params

* Named return values
2023-11-15 17:11:16 +01:00

26 lines
379 B
Go

package common
type Network struct {
Name string
SecKey string
PubKey string
RelayKey string
Addr string
}
var MainNet = Network{
Name: "mainnet",
SecKey: "asec",
PubKey: "apub",
RelayKey: "arelay",
Addr: "ark",
}
var TestNet = Network{
Name: "testnet",
SecKey: "tasec",
PubKey: "tapub",
RelayKey: "tarelay",
Addr: "tark",
}