Documentation ¶
Index ¶
- Constants
- func CreateEmptyRawTransactionAndHash(to string, nonce uint64, amount, gasLimit, gasPrice *big.Int, isTestNet bool) (string, string, error)
- func MoacSignature(prikey []byte, hash []byte) ([]byte, uint16)
- func SignRawTransaction(hash string, privateKey []byte) ([]byte, error)
- func VerifyAndCombineRawTransaction(emptyTrans, signature, publicKey string, isTestNet bool) (bool, string)
- type TxStruct
Constants ¶
View Source
const ( SmallTag byte = 0xC0 LargeTag byte = 0xF7 ChainIDMainnet byte = 99 ChainIDTestnet byte = 101 )
Variables ¶
This section is empty.
Functions ¶
func MoacSignature ¶ added in v1.0.38
@function:ETH signature @paramter[in]prikey pointer to private key @paramter[in]hash pointer to the hash of message(Transaction txt) @parameter[out]the first part is signature(r||s||v,total 65 byte); the second part
Types ¶
Click to show internal directories.
Click to hide internal directories.