transformer

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package transformer 通过私钥生成所选币种的公钥和地址

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, driver Transformer)

Register 对不同币种的Transformer进行注册

Types

type Transformer

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

Transformer 过私钥生成所选币种的公钥和地址

func New

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

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

Directories

Path Synopsis
Package btcbase 转换基于比特币地址规则的币种 使用此规则的币种有:BTC、BCH、LTC、ZEC、USDT、 TRC
Package btcbase 转换基于比特币地址规则的币种 使用此规则的币种有:BTC、BCH、LTC、ZEC、USDT、 TRC

Jump to

Keyboard shortcuts

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