Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶ added in v1.26.0
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransaction ¶ added in v1.26.0
func NewTransaction(privateKey *ecdsa.PrivateKey, publicKey *ecdsa.PublicKey, sender string, recipient string, value float32) *Transaction
func (*Transaction) GenerateSignature ¶ added in v1.26.0
func (t *Transaction) GenerateSignature() *utils.Signature
func (*Transaction) MarshalJSON ¶ added in v1.26.0
func (t *Transaction) MarshalJSON() ([]byte, error)
type TransactionRequest ¶ added in v1.34.0
type TransactionRequest struct { SenderPrivateKey *string `json:"sender_private_key"` SenderBlockchainAddress *string `json:"sender_blockchain_address"` RecipientBlockchainAddress *string `json:"recipient_blockchain_address"` SenderPublicKey *string `json:"sender_public_key"` Value *string `json:"value"` }
func (*TransactionRequest) Validate ¶ added in v1.34.0
func (tr *TransactionRequest) Validate() bool
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) BlockchainAddress ¶ added in v1.25.0
func (*Wallet) MarshalJSON ¶ added in v1.32.0
func (*Wallet) PrivateKey ¶
func (w *Wallet) PrivateKey() *ecdsa.PrivateKey
func (*Wallet) PrivateKeyStr ¶
func (*Wallet) PublicKeyStr ¶
Click to show internal directories.
Click to hide internal directories.