utils

package
v0.0.0-...-fc865ac Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(count int) (*model.GenerateData, error)

Generate 生成公钥 count: 需要生成几对公私钥

func NewPool

func NewPool() *redis.Pool

func NewPublicKey

func NewPublicKey(uncompresspubkey string) (*ecc.PublicKey, error)

从签名服务中获取04开头的UnCompressPubkey, 转换成ecc.Pubkey,用于EOS区块链账户系统

func Sign

func Sign(sigDigest []byte, pubkeyHash string) (ecc.Signature, error)

此处要返回一个ecc.Signature

func VeryfySig

func VeryfySig(payload []byte, sig ecc.Signature, uncomperssPubkey string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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