cryptoservice

package
v0.0.0-...-1305305 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("cryptoservice")

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTP        *http.Client
	URLTemplate string
}

func (*Client) RequestSigning

func (client *Client) RequestSigning(txeBase64 string, requestBase64 string, signedRequestBase64 string, accountName string, participant model.Participant) (string, error)

type InterfaceClient

type InterfaceClient interface {
	RequestSigning(txeBase64 string, requestBase64 string, signedRequestBase64 string, accountName string, participant model.Participant) (string, error)
}

type MockClient

type MockClient struct {
	HTTP *http.Client
}

func (*MockClient) RequestSigning

func (mcsc *MockClient) RequestSigning(txeBase64 string, requestBase64 string, signedRequestBase64 string, accountName string, participant model.Participant) (string, error)

type SigningRequest

type SigningRequest struct {
	AccountName string `json:"account_name"`

	// This will be signed reference envelope to verify against partcipant's signature for authenticity.
	IdentificationSigned string `json:"id_signed,omitempty"`

	// This will be unsigned reference envelope to verify against partcipant's signature for authenticity.
	IdentificationUnsigned string `json:"id_unsigned,omitempty"`

	// reference transaction id, will be
	TransactionID string `json:"transaction_id,omitempty"`

	// unsigned transaction envelope to be signed by the participant
	TransactionUnsigned string `json:"transaction_unsigned,omitempty"`
}

Jump to

Keyboard shortcuts

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