factsigner

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 9 Imported by: 0

README

FactSigner (go)

Travis CI Version

This repository contains an javascript helper function for use with the FactSigner.com signing authority.

Package Version Description
factsigner Version factsigner javascript package and solidity example contract
factsigner-go Version this package

Public repository

https://github.com/berlincode/factsigner-go

Copyright factsigner.com (https://www.factsigner.com). Code is licensed under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FactHash

func FactHash(facts Facts) []byte

func HexString2Bytes

func HexString2Bytes(str string) []byte

func NewPrivateKey

func NewPrivateKey(privateKeyBytes []byte) (*ecdsa.PrivateKey, error)

func NewPrivateKeyByHex

func NewPrivateKeyByHex(privateKeyHex string) (*ecdsa.PrivateKey, error)

Types

type Facts

type Facts struct {
	// contains filtered or unexported fields
}

type Signature

type Signature struct {
	R [32]byte
	S [32]byte
	V uint8
}

func Sign

func Sign(message []byte, privkey *ecdsa.PrivateKey) Signature

Jump to

Keyboard shortcuts

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