Documentation
¶
Overview ¶
Package gotronsign provides transaction signing functionality for TRON blockchain Implements ECDSA signature generation for transactions
gotronsign 提供 TRON 区块链的交易签名功能 实现交易的 ECDSA 签名生成
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
func Sign(privateKeyHex string, txRaw *core.TransactionRaw) ([]byte, error)
Sign generates an ECDSA signature for a transaction using the provided private key Returns the signature bytes that can be attached to the transaction
Sign 使用提供的私钥为交易生成 ECDSA 签名 返回可附加到交易的签名字节
func SignMessage ¶
func SignMessage(privateKeyHex string, message json.RawMessage) ([]byte, error)
SignMessage signs a JSON-formatted transaction message with the given private key Unmarshals the JSON into TransactionRaw before signing
SignMessage 使用给定的私钥签名 JSON 格式的交易消息 签名前将 JSON 解组为 TransactionRaw
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.