Documentation ¶
Index ¶
- Constants
- func GenerateKeyPair() (string, string, error)
- func GetAddress(scheme byte, pubKeyHash []byte) (string, error)
- func NewAddressFromBytes(b []byte) (types.WavesAddress, error)
- func NewAddressFromString(s string) (types.WavesAddress, error)
- func NewUnsignedTransferWithSig(senderPK crypto.PublicKey, amountAsset, feeAsset types.OptionalAsset, ...) *types.TransferWithSig
- func SignTransferWithSig(t *types.TransferWithSig, privateKey crypto.SecretKey) error
- func ValidAddress(addr string) (bool, error)
Constants ¶
const ( // https://sourcegraph.com/github.com/wavesplatform/gowaves/-/blob/pkg/proto/addresses.go MainNetScheme byte = 'W' TestNetScheme byte = 'T' StageNetScheme byte = 'S' CustomNetScheme byte = 'E' )
account https://docs.waves.tech/en/blockchain/account/address
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
GenerateKeyPair generates a new key pair.
func GetAddress ¶
GetAddress returns the String WavesAddress from the public key. The scheme is one of the MainNetScheme, TestNetScheme, StageNetScheme or CustomNetScheme. The public key is the base58 encoded string of the public key.
func NewAddressFromBytes ¶
func NewAddressFromBytes(b []byte) (types.WavesAddress, error)
NewAddressFromBytes creates an WavesAddress from the slice of bytes and checks that the result address is valid address.
func NewAddressFromString ¶
func NewAddressFromString(s string) (types.WavesAddress, error)
NewAddressFromString creates an WavesAddress from its string representation. This function checks that the address is valid.
func NewUnsignedTransferWithSig ¶
func NewUnsignedTransferWithSig(senderPK crypto.PublicKey, amountAsset, feeAsset types.OptionalAsset, timestamp, amount, fee uint64, recipient types.Recipient, attachment types.Attachment) *types.TransferWithSig
NewUnsignedTransferWithSig creates new TransferWithSig transaction without signature and ID.
func SignTransferWithSig ¶
func SignTransferWithSig(t *types.TransferWithSig, privateKey crypto.SecretKey) error
func ValidAddress ¶
Types ¶
This section is empty.