cosigner

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoSignerCallBack

type CoSignerCallBack struct {
	Timestamp  string `json:"timestamp"`
	Sig        string `json:"sig"`
	Key        string `json:"key"`
	BizContent string `json:"bizContent"`
	RsaType    string `json:"rsaType"`
	AesType    string `json:"aesType"`
}

type CoSignerCallBackV3 added in v1.0.2

type CoSignerCallBackV3 struct {
	Timestamp  string `json:"timestamp"`
	Sig        string `json:"sig"`
	Version    string `json:"version"`
	BizContent string `json:"bizContent"`
}

type CoSignerConfig

type CoSignerConfig struct {
	CoSignerPubKey                    string `comment:"coSignerPubKey"`
	ApprovalCallbackServicePrivateKey string `comment:"approvalCallbackServicePrivateKey"`
	ApiPubKey                         string `comment:"apiPubKey"`
	BizPrivKey                        string `comment:"bizPrivKey"`
}

type CoSignerConverter

type CoSignerConverter struct {
	Config CoSignerConfig
}

func (*CoSignerConverter) RequestConvert

func (c *CoSignerConverter) RequestConvert(d CoSignerCallBack) (string, error)

func (*CoSignerConverter) RequestV3Convert added in v1.0.2

func (c *CoSignerConverter) RequestV3Convert(d CoSignerCallBackV3) (string, error)

func (*CoSignerConverter) ResponseConverter

func (c *CoSignerConverter) ResponseConverter(d any) (map[string]string, error)

It has been Deprecated,Please use convertCoSignerResponseWithNewCryptoType

func (*CoSignerConverter) ResponseConverterWithNewCryptoType

func (c *CoSignerConverter) ResponseConverterWithNewCryptoType(d any) (map[string]string, error)

func (*CoSignerConverter) ResponseV3Converter added in v1.0.2

func (c *CoSignerConverter) ResponseV3Converter(d any) (map[string]string, error)

type CoSignerResponse

type CoSignerResponse struct {
	Approve bool   `json:"approve"`
	TxKey   string `json:"txKey"`
}

type CoSignerResponseV3 added in v1.0.2

type CoSignerResponseV3 struct {
	Action     string `json:"action"`
	ApprovalId string `json:"approvalId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL