mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 22:55:06 +03:00
1. moved address to core
This commit is contained in:
parent
b5f79eadcb
commit
6319d6231b
15 changed files with 61 additions and 60 deletions
|
@ -19,7 +19,7 @@ import (
|
|||
"net"
|
||||
"runtime"
|
||||
|
||||
"github.com/RiV-chain/RiV-mesh/src/address"
|
||||
"github.com/RiV-chain/RiV-mesh/src/core"
|
||||
)
|
||||
|
||||
type keySet struct {
|
||||
|
@ -41,7 +41,7 @@ func main() {
|
|||
fmt.Println("-----")
|
||||
fmt.Println("Priv:", hex.EncodeToString(newKey.priv))
|
||||
fmt.Println("Pub:", hex.EncodeToString(newKey.pub))
|
||||
addr := address.AddrForKey(newKey.pub)
|
||||
addr := core.AddrForKey(newKey.pub)
|
||||
fmt.Println("IP:", net.IP(addr[:]).String())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue