utils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDomainByteToProtoByte

func ConvertDomainByteToProtoByte(b [32]byte) []byte

func ConvertDomainByteToProtoByte32

func ConvertDomainByteToProtoByte32(b []byte) [32]byte

func ConvertDomainInt8ToProtoInt64

func ConvertDomainInt8ToProtoInt64(i int8) int64

func ConvertStringToProtoByte

func ConvertStringToProtoByte(s string) []byte

func ConvertValToString

func ConvertValToString(v float32) string

func JsonStatus

func JsonStatus(message string) []byte

func PrivateKeyFromString

func PrivateKeyFromString(s string, publicKey *ecdsa.PublicKey) *ecdsa.PrivateKey

func PublicKeyFromString

func PublicKeyFromString(s string) *ecdsa.PublicKey

func String2BigIntTuple

func String2BigIntTuple(s string) (big.Int, big.Int)

Types

type Signature

type Signature struct {
	R *big.Int
	S *big.Int
}

func SignatureFromString

func SignatureFromString(s string) *Signature

func (*Signature) String

func (s *Signature) String() string

Directories

Path Synopsis
Package bech32 provides a Go implementation of the bech32 format.
Package bech32 provides a Go implementation of the bech32 format.
Package logger defines an interface and default implementation for subsystem logging.
Package logger defines an interface and default implementation for subsystem logging.

Jump to

Keyboard shortcuts

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