Documentation ¶
Index ¶
- func ComputeProofOfWork(peerId string, difficulty int) (string, error)
- func GenerateJWTToken(peerId string) (string, error)
- func GeneratePoW(peerId string) string
- func SignData(privKey crypto.PrivKey, data []byte) ([]byte, error)
- func VerifySignature(pubKey crypto.PubKey, data []byte, signatureHex string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWTToken ¶
func GeneratePoW ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.