Files

19 lines
399 B
Go

// Copyright (C) 2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package utils
import (
"github.com/ava-labs/hypersdk/crypto"
"github.com/bianyuanop/oraclevm/consts"
)
func Address(pk crypto.PublicKey) string {
return crypto.Address(consts.HRP, pk)
}
func ParseAddress(s string) (crypto.PublicKey, error) {
return crypto.ParseAddress(consts.HRP, s)
}