Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MainNetChainID, _ = hex.DecodeString("db4007d45f04c1403a7e66a5c66b5b1cdfc2dde8b5335d1d2f116d592ca3dbb1")
View Source
var TestNetChainID, _ = hex.DecodeString("d3c1f19a4947c296446583f988c43fd1a83818fabaf3454a0020198cb361ebd2")
Functions ¶
func RefBlockNum ¶
func RefBlockPrefix ¶
Types ¶
type SignedTransaction ¶
type SignedTransaction struct {
*types.Transaction
}
func NewSignedTransaction ¶
func NewSignedTransaction(tx *types.Transaction) *SignedTransaction
func (*SignedTransaction) Digest ¶
func (tx *SignedTransaction) Digest(chainID []byte) ([]byte, error)
func (*SignedTransaction) Serialize ¶
func (tx *SignedTransaction) Serialize() ([]byte, error)
func (*SignedTransaction) Sign ¶
func (tx *SignedTransaction) Sign(chainID []byte, keys ...*key.PrivateKey) error
Click to show internal directories.
Click to hide internal directories.