-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmain.go
More file actions
18 lines (15 loc) · 662 Bytes
/
main.go
File metadata and controls
18 lines (15 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main
import "fmt"
func main() {
wallet := NewWallet()
fmt.Println("0 - Having a private ECDSA key")
fmt.Println(byteString(wallet.PrivateKey))
fmt.Println("=======================")
// fmt.Println("private wallet import format")
// fmt.Println("private wallet import format", ToWIF(wallet.PrivateKey))
// fmt.Println("=======================")
fmt.Println("1 - Take the corresponding public key generated with it (65 bytes, 1 byte 0x04, 32 bytes corresponding to X coordinate, 32 bytes corresponding to Y coordinate)")
fmt.Println("raw public key", byteString(wallet.PublicKey))
fmt.Println("=======================")
wallet.GetAddress()
}