Documentation ¶
Index ¶
- Variables
- type CryptoServiceClient
- type MockCryptoServiceClient
- func (client MockCryptoServiceClient) AddIBMSign(transactionUnsigned []byte) (transactionSigned []byte, err error, statusCode int, errorCode string)
- func (client MockCryptoServiceClient) CreateAccount(accountName string) (nodeconfig.Account, error, int, string)
- func (client MockCryptoServiceClient) GetIBMAccount() (account model.Account, err error, statusCode int, errorCode string)
- func (client MockCryptoServiceClient) ParticipantSignXdr(accountName string, transactionUnsigned []byte) (transactionSigned []byte, err error, statusCode int, errorCode string)
- func (client MockCryptoServiceClient) SignPayload(accountName string, payload []byte) (signedPayload []byte, err error, statusCode int, errorCode string)
- func (client MockCryptoServiceClient) SignXdr(accountName string, idUnsigned []byte, idSigned []byte, ...) (transactionSigned []byte, err error, statusCode int, errorCode string)
- type RestCryptoServiceClient
- func (client RestCryptoServiceClient) AddIBMSign(transactionUnsigned []byte) (transactionSigned []byte, err error, statusCode int, errorCode string)
- func (client RestCryptoServiceClient) CreateAccount(accountName string) (nodeconfig.Account, error, int, string)
- func (client RestCryptoServiceClient) GetIBMAccount() (account model.Account, err error, statusCode int, errorCode string)
- func (client RestCryptoServiceClient) ParticipantSignXdr(accountName string, transactionUnsigned []byte) (transactionSigned []byte, err error, statusCode int, errorCode string)
- func (client RestCryptoServiceClient) SignPayload(accountName string, payload []byte) (signedPayload []byte, err error, statusCode int, errorCode string)
- func (client RestCryptoServiceClient) SignPayloadByMasterAccount(payload []byte) (signedPayload []byte, err error)
- func (client RestCryptoServiceClient) SignXdr(accountName string, idUnsigned []byte, idSigned []byte, ...) (transactionSigned []byte, err error, statusCode int, errorCode string)
Constants ¶
This section is empty.
Variables ¶
View Source
var LOGGER = logging.MustGetLogger("crypto-client")
Functions ¶
This section is empty.
Types ¶
type CryptoServiceClient ¶
type CryptoServiceClient interface { CreateAccount(accountName string) (account nodeconfig.Account, err error, statusCode int, errorCode string) SignPayload(accountName string, payload []byte) (signedPayload []byte, err error, statusCode int, errorCode string) SignXdr(accountName string, idUnsigned []byte, idSigned []byte, transactionUnsigned []byte) (transactionSigned []byte, err error, statusCode int, errorCode string) ParticipantSignXdr(accountName string, transactionUnsigned []byte) (transactionSigned []byte, err error, statusCode int, errorCode string) AddIBMSign(transactionUnsigned []byte) (transactionSigned []byte, err error, statusCode int, errorCode string) GetIBMAccount() (account model.Account, err error, statusCode int, errorCode string) }
type MockCryptoServiceClient ¶
func CreateMockCryptoServiceClient ¶
func CreateMockCryptoServiceClient() (MockCryptoServiceClient, error)
func (MockCryptoServiceClient) AddIBMSign ¶
func (MockCryptoServiceClient) CreateAccount ¶
func (client MockCryptoServiceClient) CreateAccount(accountName string) (nodeconfig.Account, error, int, string)
func (MockCryptoServiceClient) GetIBMAccount ¶
func (MockCryptoServiceClient) ParticipantSignXdr ¶
func (MockCryptoServiceClient) SignPayload ¶
type RestCryptoServiceClient ¶
type RestCryptoServiceClient struct { Internal_URL string CreateAccountURL string SignPayloadURL string SignXdrURL string GetIBMAccountURL string GetIBMSigURL string ParticipantSignXdrURL string SignPayloadByMasterAccountURL string }
func CreateRestCryptoServiceClient ¶
func CreateRestCryptoServiceClient(internalUrl string) (RestCryptoServiceClient, error)
func (RestCryptoServiceClient) AddIBMSign ¶
func (RestCryptoServiceClient) CreateAccount ¶
func (client RestCryptoServiceClient) CreateAccount(accountName string) (nodeconfig.Account, error, int, string)
func (RestCryptoServiceClient) GetIBMAccount ¶
func (RestCryptoServiceClient) ParticipantSignXdr ¶
func (RestCryptoServiceClient) SignPayload ¶
func (RestCryptoServiceClient) SignPayloadByMasterAccount ¶
func (client RestCryptoServiceClient) SignPayloadByMasterAccount(payload []byte) (signedPayload []byte, err error)
Click to show internal directories.
Click to hide internal directories.