elliptic_curve_key_generation

package
v0.0.0-...-ac911f0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const A string = "0000000000000000000000000000000000000000000000000000000000000000"

Coefficient A(a) of curve

View Source
const B string = "0000000000000000000000000000000000000000000000000000000000000007"

Coefficient B(b) of curve

View Source
const Gx string = "79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798"

X - Co-ordinate of the Generator point(G) for y^2 = x^3 + 7

View Source
const Gy string = "483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8"

Y - Co-ordinate of the Generator point(G) for y^2 = x^3 + 7

View Source
const H string = "01"

Cofactor(h) of the Generator point(G)

View Source
const N string = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"

Order(n) of the Generator point(G)

View Source
const P string = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"

Prime order(p)

Variables

View Source
var Power2Generator [257][2]string = [257][2]string{} /* 257 elements not displayed */

Functions

func Base58Decode

func Base58Decode(inputString string) string

func Base58Encode

func Base58Encode(inputString string) string

func BoiceAddressGenerator

func BoiceAddressGenerator(publicKey string) string

func CompressedPublicKey

func CompressedPublicKey(privateKey string) string

func OnePointAddition

func OnePointAddition(x string, y string) (string, string)

func Power2GeneratorPointsGenerator

func Power2GeneratorPointsGenerator()

func PublicKeyGenerator

func PublicKeyGenerator(privateKey string) (string, string)

func PublicKeyHash

func PublicKeyHash(publicKey string) string

func RIPEMD160

func RIPEMD160(inputString string) string

func Reverse

func Reverse(str string) string

func SHA256

func SHA256(inputString string) string

func SlopeOfTangent

func SlopeOfTangent(x string, y string) string

func SlopeOfTwoPointLine

func SlopeOfTwoPointLine(x1 string, y1 string, x2 string, y2 string) string

func TwoPointAddition

func TwoPointAddition(x1 string, y1 string, x2 string, y2 string) (string, string)

func UncompressedPublicKey

func UncompressedPublicKey(privateKey string) string

func ValidateBoiceAddress

func ValidateBoiceAddress(boiceAddress string) bool

func XOnePointAddition

func XOnePointAddition(x string, slope string) string

func XTwoPointAddition

func XTwoPointAddition(slope string, x1 string, x2 string) string

func YOnePointAddition

func YOnePointAddition(x string, y string, slope string, xr string) string

func YTwoPointAddition

func YTwoPointAddition(slope string, x2 string, y2 string, xr string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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