mirror of
https://github.com/luxfi/oraclevm.git
synced 2026-10-30 15:23:15 +00:00
19 lines
399 B
Go
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)
|
|
}
|