utils

package
v0.0.0-...-79d14b3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DERDecode

func DERDecode(b []byte) (*big.Int, *big.Int, error)

func DEREncode

func DEREncode(r, s *big.Int) []byte

func DoubleHash

func DoubleHash(data []byte) []byte

func ParseCompact

func ParseCompact(b []byte) (*big.Int, *big.Int, error)

func ParsePublicKey

func ParsePublicKey(d []byte) (*big.Int, *big.Int, error)

func ParseUncompressed

func ParseUncompressed(d []byte) (*big.Int, *big.Int, error)

ParseUncompressed parses a 65 bytes uncompressed public address into a (X,Y) point on the curve.

func RIPEMD160Hash

func RIPEMD160Hash(data []byte) []byte

func ReverseBytes

func ReverseBytes(b []byte) []byte

func SerializeUncompressed

func SerializeUncompressed(x, y *big.Int) []byte

SerializeUncompressed serializes a point on the curve into a 65 byte long byte array.

Types

type Hash

type Hash []byte

Jump to

Keyboard shortcuts

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