util

package
v0.0.0-...-513b4ae Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyPair

func NewKeyPair() ([]byte, []byte)

NewKeyPair genera un par de claves pública y privada

func PubKeyHex

func PubKeyHex(pubKey []byte) string

PubKeyHex convierte una clave pública a formato hexadecimal

Types

type ProofOfWork

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

ProofOfWork representa la estructura del algoritmo de prueba de trabajo

func NewProofOfWork

func NewProofOfWork(block *Block) *ProofOfWork

NewProofOfWork simula la creación de un "Proof of Work"

func (*ProofOfWork) Run

func (pow *ProofOfWork) Run() (int, []byte)

Run simula la ejecución del algoritmo de prueba de trabajo

Jump to

Keyboard shortcuts

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