Documentation ¶
Index ¶
- func BTCPRIKEYStrToHexAddr(privateKeyStr string) (string, string, error)
- func CheckContentType(ty string) bool
- func EcdsaToPrivateStr(ecd *ecdsa.PrivateKey) string
- func FromECDSA(priv *ecdsa.PrivateKey) []byte
- func MIMEType(filePath string) map[string]interface{}
- func PaddedBigBytes(bigint *big.Int, n int) []byte
- func PrivateStrToBtcAddress(private string) string
- func PrivateStrToByte(private string) []byte
- func PrivateStrToEcdsa(private string) *ecdsa.PrivateKey
- func ReadBits(bigint *big.Int, buf []byte)
- func Sha256hash(rawdata string) string
- func SignTransaction(privateKeyStr string, msg string) string
- func ToJson(data interface{}) string
- func ToText(data interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BTCPRIKEYStrToHexAddr ¶
func CheckContentType ¶
func EcdsaToPrivateStr ¶
func EcdsaToPrivateStr(ecd *ecdsa.PrivateKey) string
func FromECDSA ¶
func FromECDSA(priv *ecdsa.PrivateKey) []byte
FromECDSA exports a private key into a binary dump.
func PaddedBigBytes ¶
PaddedBigBytes encodes a big integer as a big-endian byte slice. The length of the slice is at least n bytes.
func PrivateStrToBtcAddress ¶
func PrivateStrToByte ¶
func PrivateStrToEcdsa ¶
func PrivateStrToEcdsa(private string) *ecdsa.PrivateKey
func ReadBits ¶
ReadBits encodes the absolute value of bigint as big-endian bytes. Callers must ensure that buf has enough space. If buf is too short the result will be incomplete.
func Sha256hash ¶
func SignTransaction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.