single.go 212 B

123456789101112131415
  1. package addrgen
  2. import "math/big"
  3. type SingleAddr string
  4. var _ AddrGen = SingleAddr("")
  5. func (n SingleAddr) Addr() string {
  6. return string(n)
  7. }
  8. func (n SingleAddr) Power() *big.Int {
  9. return big.NewInt(1)
  10. }