esign

package
v0.0.0-...-7c1852d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeyPair

func GenerateKeyPair() (ed25519.PublicKey, ed25519.PrivateKey)

Generates pk and sk

func SignTx

func SignTx(sk ed25519.PrivateKey, timestamp int64, amountInput int, amountToSelf int, amountToReceiver int) []byte

Signs a transaction

func VerifyTx

func VerifyTx(pk ed25519.PublicKey, timestamp int64, amountInput int, amountToSelf int, amountToReceiver int, signature []byte) bool

Verifies a transaction

Types

This section is empty.

Jump to

Keyboard shortcuts

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