cosigner

package
v0.0.0-...-5f625e7 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 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"`
}

type CoSignerConfig

type CoSignerConfig struct {
	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) ResponseConverter

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

type CoSignerResponse

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

Jump to

Keyboard shortcuts

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