Documentation ¶
Overview ¶
Package transaction implements CKB transaction signing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Key *secp256k1.Secp256k1Key Payload interface{} }
Context is user provided information for `signer.TransactionSigner.SignTransaction`. In turn the context is passed to `signer.ScriptSigner.SignTransaction`.
See more in github.com/nervosnetwork/ckb-sdk-go/v2/transaction/signer
func NewContext ¶
func NewContextWithPayload ¶
type ScriptGroup ¶
type ScriptGroup struct { Script *types.Script `json:"script"` GroupType types.ScriptType `json:"group_type"` InputIndices []uint32 `json:"input_indices"` OutputIndices []uint32 `json:"output_indices"` }
func (*ScriptGroup) UnmarshalJSON ¶
func (r *ScriptGroup) UnmarshalJSON(input []byte) error
type TransactionWithScriptGroups ¶
type TransactionWithScriptGroups struct { TxView *types.Transaction `json:"tx_view"` ScriptGroups []*ScriptGroup `json:"script_groups"` }
Directories ¶
Path | Synopsis |
---|---|
Package signer implements a CKB transaction signing framework.
|
Package signer implements a CKB transaction signing framework. |
Click to show internal directories.
Click to hide internal directories.