casp

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Type    string `json:"type"`
	Title   string `json:"title"`
	Details string `json:"details,omitempty"`
	Status  int64  `json:"status"`
}

func (ErrorResponse) Error added in v0.4.1

func (e ErrorResponse) Error() string

type PostSignDataResponse

type PostSignDataResponse struct {
	OperationID string `json:"operationID"`
}

type SignOperationResponse

type SignOperationResponse struct {
	OperationID string    `json:"operationID"`
	Kind        string    `json:"kind"`
	Status      string    `json:"status"`
	StatusText  string    `json:"statusText"`
	CreatedAt   time.Time `json:"createdAt"`
	VaultID     string    `json:"vaultID"`
	Description string    `json:"description,omitempty"`
	IsApproved  bool      `json:"isApproved"`
	AccountID   string    `json:"accountID"`
	Groups      []struct {
		Name    string `json:"name"`
		Members []struct {
			ApprovedAt           string `json:"approvedAt"`
			Id                   string `json:"id"`
			IsApproved           bool   `json:"isApproved"`
			Name                 string `json:"name"`
			Status               string `json:"status"`
			ApprovalGroupAccount struct {
				Id   string `json:"id"`
				Name string `json:"name"`
			} `json:"approvalGroupAccount"`
			Label        string `json:"label"`
			IsGlobal     bool   `json:"isGlobal"`
			IsActive     bool   `json:"isActive"`
			GlobalStatus string `json:"globalStatus"`
			IsOffline    bool   `json:"isOffline"`
		} `json:"members"`
		RequiredApprovals int64 `json:"requiredApprovals"`
		Order             int64 `json:"order"`
		DeactivateAllowed bool  `json:"deactivateAllowed"`
		IsOffline         bool  `json:"isOffline"`
	} `json:"groups"`
	VaultName           string   `json:"vaultName"`
	PublicKeys          []string `json:"publicKeys"`
	DataToSign          []string `json:"dataToSign"`
	Signatures          []string `json:"signatures,omitempty"`
	V                   []int64  `json:"v,omitempty"`
	LedgerHashAlgorithm string   `json:"ledgerHashAlgorithm"`
	CollectedData       struct {
		CollectionComplete   bool          `json:"collectionComplete"`
		DataCollectionGroups []interface{} `json:"dataCollectionGroups"`
	} `json:"collectedData"`
}

func (SignOperationResponse) GetPendingParticipantsApprovals added in v0.4.1

func (response SignOperationResponse) GetPendingParticipantsApprovals() error

type UncompressedPublicKeysResponse

type UncompressedPublicKeysResponse struct {
	TotalItems   int64    `json:"totalItems"`
	Items        []string `json:"items"`
	Chains       []string `json:"chains"`
	AccountName  string   `json:"accountName"`
	AccountIndex uint32   `json:"accountIndex"`
}

Jump to

Keyboard shortcuts

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