crypto_handler

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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CYPTO_OPERATIONS = CryptoOperations{}

Global handler variable used for clean up session in the end

View Source
var LOGGER = logging.MustGetLogger("crypto-handler")

Functions

This section is empty.

Types

type CryptoOperations

type CryptoOperations struct {
	HSMInstance common.HsmObject
	// contains filtered or unexported fields
}

func CreateCryptoOperations

func CreateCryptoOperations() (op CryptoOperations, err error)

func (*CryptoOperations) AddIBMSign

func (op *CryptoOperations) AddIBMSign(w http.ResponseWriter, req *http.Request)

Takes XDR and signs and sends back XDR signed with IBM account

func (*CryptoOperations) CreateAccount

func (op *CryptoOperations) CreateAccount(w http.ResponseWriter, req *http.Request)

add next

func (*CryptoOperations) GetIBMAccount

func (op *CryptoOperations) GetIBMAccount(w http.ResponseWriter, req *http.Request)

Returns back address of IBM account

func (*CryptoOperations) ParticipantSignXdr

func (op *CryptoOperations) ParticipantSignXdr(w http.ResponseWriter, req *http.Request)

ParticipantSignXdr: This is participant only signing endpoint for signing xdr with out verification

func (*CryptoOperations) SignPayload

func (op *CryptoOperations) SignPayload(w http.ResponseWriter, req *http.Request)

func (*CryptoOperations) SignXML

func (op *CryptoOperations) SignXML(w http.ResponseWriter, req *http.Request)

func (*CryptoOperations) SignXMLUsingStellar

func (op *CryptoOperations) SignXMLUsingStellar(w http.ResponseWriter, req *http.Request)

func (*CryptoOperations) SignXdr

func (op *CryptoOperations) SignXdr(w http.ResponseWriter, req *http.Request)

SignXdr: verifies identification and then signs xdr if pass

Jump to

Keyboard shortcuts

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