transformer

package
v0.0.0-...-1c4572a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, driver Transformer)

对不同币种的Transformer进行注册

Types

type Transformer

type Transformer interface {
	PrivKeyToPub(priv []byte) (pub []byte, err error)
	PubKeyToAddress(pub []byte) (add string, err error)
}

func New

func New(name string) (t Transformer, err error)

提供币种名称返回相应的Transformer对象

Directories

Path Synopsis
转换基于比特币地址规则的币种 使用此规则的币种有:BTC、BCH、LTC、ZEC、USDT、 BTY 对各个币种进行注册
转换基于比特币地址规则的币种 使用此规则的币种有:BTC、BCH、LTC、ZEC、USDT、 BTY 对各个币种进行注册

Jump to

Keyboard shortcuts

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