Documentation ¶
Index ¶
- func Base58FromString(str string) ([]byte, error)
- func Base58FromStringMust(str string) []byte
- func Base58ToStr(data []byte) string
- func CreateKeyPair() (private []byte, public []byte, err error)
- func Hash(data []byte) []byte
- func HashAll(allData ...[]byte) []byte
- func Int64GetBytes(val int64) []byte
- func JsonParseRaw(raw []byte, obj interface{}) error
- func JsonParseStr(jsonStr string, obj interface{}) error
- func JsonSerializeRaw(obj interface{}) ([]byte, error)
- func JsonSerializeStr(obj interface{}) (string, error)
- func SignCheck(pub []byte, hash []byte, sig []byte) bool
- func SignCreate(priv []byte, pub []byte, hash []byte) (sig []byte, err error)
- type Base58JsonVal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base58FromString ¶
func Base58FromStringMust ¶
func Base58ToStr ¶
func CreateKeyPair ¶
func Int64GetBytes ¶
func JsonParseRaw ¶
func JsonParseStr ¶
func JsonSerializeRaw ¶
func JsonSerializeStr ¶
Types ¶
type Base58JsonVal ¶
type Base58JsonVal struct {
// contains filtered or unexported fields
}
func NewBase58JsonValFromData ¶
func NewBase58JsonValFromData(val []byte) *Base58JsonVal
func NewBase58JsonValFromString ¶
func NewBase58JsonValFromString(str string) (*Base58JsonVal, error)
func (*Base58JsonVal) Bytes ¶
func (s *Base58JsonVal) Bytes() []byte
func (*Base58JsonVal) MarshalJSON ¶
func (s *Base58JsonVal) MarshalJSON() ([]byte, error)
func (*Base58JsonVal) String ¶
func (s *Base58JsonVal) String() string
func (*Base58JsonVal) UnmarshalJSON ¶
func (s *Base58JsonVal) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.