github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/stdlibs/std/crypto.gno (about) 1 package std 2 3 type Address string // NOTE: bech32 4 5 func (a Address) String() string { 6 return string(a) 7 } 8 9 // IsValid checks if the address is valid bech32 encoded string 10 func (a Address) IsValid() bool { 11 _, _, ok := DecodeBech32(a) 12 return ok 13 } 14 15 const RawAddressSize = 20 16 17 type RawAddress [RawAddressSize]byte