Documentation ¶
Index ¶
- Constants
- Variables
- func Base58Decode(inputString string) string
- func Base58Encode(inputString string) string
- func BoiceAddressGenerator(publicKey string) string
- func CompressedPublicKey(privateKey string) string
- func OnePointAddition(x string, y string) (string, string)
- func Power2GeneratorPointsGenerator()
- func PublicKeyGenerator(privateKey string) (string, string)
- func PublicKeyHash(publicKey string) string
- func RIPEMD160(inputString string) string
- func Reverse(str string) string
- func SHA256(inputString string) string
- func SlopeOfTangent(x string, y string) string
- func SlopeOfTwoPointLine(x1 string, y1 string, x2 string, y2 string) string
- func TwoPointAddition(x1 string, y1 string, x2 string, y2 string) (string, string)
- func UncompressedPublicKey(privateKey string) string
- func ValidateBoiceAddress(boiceAddress string) bool
- func XOnePointAddition(x string, slope string) string
- func XTwoPointAddition(slope string, x1 string, x2 string) string
- func YOnePointAddition(x string, y string, slope string, xr string) string
- func YTwoPointAddition(slope string, x2 string, y2 string, xr string) string
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 Base58Encode ¶
func BoiceAddressGenerator ¶
func CompressedPublicKey ¶
func Power2GeneratorPointsGenerator ¶
func Power2GeneratorPointsGenerator()
func PublicKeyGenerator ¶
func PublicKeyHash ¶
func SlopeOfTangent ¶
func SlopeOfTwoPointLine ¶
func TwoPointAddition ¶
func UncompressedPublicKey ¶
func ValidateBoiceAddress ¶
func XOnePointAddition ¶
Types ¶
This section is empty.
Source Files ¶
- Base58Decode.go
- Base58Encode.go
- BoiceAddressGenerator.go
- CompressedPublicKey.go
- OnePointAddition.go
- Power2GeneratorPoints.go
- Power2GeneratorPointsGenerator.go
- PublicKeyGenerator.go
- PublicKeyHash.go
- RIPEMD160.go
- Reverse.go
- SECP256K1_Parameters.go
- SHA256.go
- SlopeOfTangent.go
- SlopeOfTwoPointLine.go
- TwoPointAddition.go
- UncompressedPublicKey.go
- ValidateBoiceAddress.go
- XOnePointAddition.go
- XTwoPointAddition.go
- YOnePointAddition.go
- YTwoPointAddition.go
Click to show internal directories.
Click to hide internal directories.