Documentation
¶
Index ¶
- func AssertHexDecode(s string) []byte
- func BuildLogger(options config.LogOptions) (*zap.Logger, *zap.Config, error)
- func EcdsaPrivateKeyToString(key *ecdsa.PrivateKey) string
- func EcdsaPublicKeyToAddress(key *ecdsa.PublicKey) string
- func EcdsaPublicKeyToString(key *ecdsa.PublicKey) string
- func GenerateEcdsaPrivateKey() (*ecdsa.PrivateKey, error)
- func GetCredentialsForAddress(isTLS bool) (credentials.TransportCredentials, error)
- func GetEventSig(abi *abi.ABI, eventName string) (string, error)
- func GetEventTopic(abi *abi.ABI, eventName string) (common.Hash, error)
- func HashJWTSignatureInput(textToSign []byte) []byte
- func HashOriginatorSignatureInput(unsignedOriginatorEnvelope []byte) []byte
- func HashPayerSignatureInput(unsignedClientEnvelope []byte) []byte
- func HexDecode(s string) ([]byte, error)
- func HexEncode(data []byte) string
- func HttpAddressToGrpcTarget(httpAddress string) (string, bool, error)
- func ParseEcdsaPrivateKey(key string) (*ecdsa.PrivateKey, error)
- func ParseEcdsaPublicKey(key string) (*ecdsa.PublicKey, error)
- func ParseInboxId(inboxIdString string) ([32]byte, error)
- func RandomSleep(maxTimeMs int)
- func SignPayerEnvelope(unsignedClientEnvelope []byte, payerPrivateKey *ecdsa.PrivateKey) ([]byte, error)
- func Unimplemented(message string, unusedVariables ...interface{})
- func UnmarshalClientEnvelope(envelope []byte) (*envelopes.ClientEnvelope, error)
- func UnmarshalOriginatorEnvelope(envelope []byte) (*envelopes.OriginatorEnvelope, error)
- func UnmarshalUnsignedEnvelope(unsignedEnvelopeBytes []byte) (*envelopes.UnsignedOriginatorEnvelope, error)
- func Unused(unusedVariables ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertHexDecode ¶
func BuildLogger ¶
func EcdsaPrivateKeyToString ¶
func EcdsaPrivateKeyToString(key *ecdsa.PrivateKey) string
func EcdsaPublicKeyToAddress ¶
func EcdsaPublicKeyToString ¶
func GenerateEcdsaPrivateKey ¶
func GenerateEcdsaPrivateKey() (*ecdsa.PrivateKey, error)
func GetCredentialsForAddress ¶
func GetCredentialsForAddress( isTLS bool, ) (credentials.TransportCredentials, error)
func GetEventSig ¶
Extract the an event signature from an ABI by event name
func GetEventTopic ¶
Extract the an event topic (the hash of the signature) from an ABI by event name
func HashJWTSignatureInput ¶
func HashPayerSignatureInput ¶
func HttpAddressToGrpcTarget ¶
/ Maps from a URL, as defined in https://pkg.go.dev/net/url#URL, to a gRPC target, / as defined in https://github.com/grpc/grpc/blob/master/doc/naming.md
func ParseEcdsaPrivateKey ¶
func ParseEcdsaPrivateKey(key string) (*ecdsa.PrivateKey, error)
func ParseEcdsaPublicKey ¶
Take the stringified form of an ECDSA public key and return the *ecdsa.PublicKey
func ParseInboxId ¶
func RandomSleep ¶
func RandomSleep(maxTimeMs int)
func SignPayerEnvelope ¶
func SignPayerEnvelope( unsignedClientEnvelope []byte, payerPrivateKey *ecdsa.PrivateKey, ) ([]byte, error)
func Unimplemented ¶
func Unimplemented(message string, unusedVariables ...interface{})
Unimplemented panics with a message indicating that the function is not implemented.
func UnmarshalClientEnvelope ¶
func UnmarshalClientEnvelope(envelope []byte) (*envelopes.ClientEnvelope, error)
func UnmarshalOriginatorEnvelope ¶
func UnmarshalOriginatorEnvelope(envelope []byte) (*envelopes.OriginatorEnvelope, error)
func UnmarshalUnsignedEnvelope ¶
func UnmarshalUnsignedEnvelope( unsignedEnvelopeBytes []byte, ) (*envelopes.UnsignedOriginatorEnvelope, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.