Documentation
¶
Overview ¶
handles dkgCache used during DKG process
Index ¶
- func HandlerAggregateDks(c echo.Context) error
- func HandlerCommitDks(c echo.Context) error
- func HandlerExportDKShare(c echo.Context) error
- func HandlerGetKeyPubInfo(c echo.Context) error
- func HandlerImportDKShare(c echo.Context) error
- func HandlerNewDks(c echo.Context) error
- func HandlerSignDigest(c echo.Context) error
- func InitLogger()
- type AggregateDKSRequest
- type AggregateDKSResponse
- type CommitDKSRequest
- type CommitDKSResponse
- type ExportDKShareRequest
- type ExportDKShareResponse
- type GetPubKeyInfoRequest
- type GetPubKeyInfoResponse
- type ImportDKShareRequest
- type ImportDKShareResponse
- type NewDKSRequest
- type NewDKSResponse
- type SignDigestRequest
- type SignDigestResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerAggregateDks ¶
func HandlerCommitDks ¶
func HandlerExportDKShare ¶
func HandlerGetKeyPubInfo ¶
func HandlerImportDKShare ¶
func HandlerNewDks ¶
func HandlerSignDigest ¶
func InitLogger ¶
func InitLogger()
Types ¶
type AggregateDKSRequest ¶
type AggregateDKSResponse ¶
type AggregateDKSResponse struct {
Err string `json:"err"`
}
func AggregateDKSReq ¶
func AggregateDKSReq(req *AggregateDKSRequest) *AggregateDKSResponse
type CommitDKSRequest ¶
type CommitDKSRequest struct {
TmpId int `json:"tmpId"`
}
type CommitDKSResponse ¶
func CommitDKSReq ¶
func CommitDKSReq(req *CommitDKSRequest) *CommitDKSResponse
type ExportDKShareRequest ¶
type ExportDKShareRequest struct {
}
type ExportDKShareResponse ¶
type ExportDKShareResponse struct {
}
type GetPubKeyInfoRequest ¶
type GetPubKeyInfoRequest struct {
Address string `json:"address"` //base58
}
type GetPubKeyInfoResponse ¶
type GetPubKeyInfoResponse struct {
Address string `json:"address"` //base58
N uint16 `json:"n"`
T uint16 `json:"t"`
Index uint16 `json:"index"`
PubKeys []string `json:"pub_keys"` // base58
PubKeyMaster string `json:"pub_key_master"` // base58
Err string `json:"err"`
}
func GetKeyPubInfoReq ¶
func GetKeyPubInfoReq(req *GetPubKeyInfoRequest) *GetPubKeyInfoResponse
type ImportDKShareRequest ¶
type ImportDKShareRequest struct {
}
type ImportDKShareResponse ¶
type ImportDKShareResponse struct {
}
type NewDKSRequest ¶
type NewDKSResponse ¶
type NewDKSResponse struct {
Err string `json:"err"`
}
func NewDKSetReq ¶
func NewDKSetReq(req *NewDKSRequest) *NewDKSResponse
type SignDigestRequest ¶
type SignDigestResponse ¶
type SignDigestResponse struct {
Err string `json:"err"`
}
func SignDigestReq ¶
func SignDigestReq(req *SignDigestRequest) *SignDigestResponse
Click to show internal directories.
Click to hide internal directories.