Documentation ¶
Index ¶
- func Base58Decode(input []byte) []byte
- func Base58Encode(input []byte) []byte
- func CheckSumSlice(payload []byte) []byte
- func EllipticCurve() elliptic.Curve
- func NewKeyPair() (ecdsa.PrivateKey, []byte)
- func PublicKeyHash(pubKey []byte) []byte
- func ValidateAddress(address string) bool
- type Wallet
- type Wallets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base58Decode ¶
func Base58Encode ¶
func CheckSumSlice ¶
CheckSumSlice calcola il checksum restituendono i primi checksumLenght byte
func EllipticCurve ¶
EllipticCurve returns the elliptic curve of choice
func NewKeyPair ¶
func NewKeyPair() (ecdsa.PrivateKey, []byte)
NewKeyPair genera e restituisce una coppia: *chiave privata chiave pubblica utilizzando ECDSA
func PublicKeyHash ¶
PublicKeyHash restituisce l'hash della chiave pubblica
func ValidateAddress ¶
Types ¶
type Wallet ¶
type Wallet struct { PrivateKey ecdsa.PrivateKey PublicKey []byte }
Wallet struttura atta a gestire la chiave privata
func MakeWallet ¶
func MakeWallet() *Wallet
Click to show internal directories.
Click to hide internal directories.