Documentation
¶
Index ¶
- func SignJobCompleted(privateKey ed25519.PrivateKey, keyID string, ...) (protocol.NodeSignature, error)
- func VerifyJobCompleted(publicKey ed25519.PublicKey, payload protocol.JobCompletedPayload) error
- func VerifyRefresh(publicKey ed25519.PublicKey, req RefreshRequest, now time.Time, ...) error
- type RefreshRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignJobCompleted ¶
func SignJobCompleted(privateKey ed25519.PrivateKey, keyID string, payload protocol.JobCompletedPayload, signedAt time.Time) (protocol.NodeSignature, error)
func VerifyJobCompleted ¶
func VerifyJobCompleted(publicKey ed25519.PublicKey, payload protocol.JobCompletedPayload) error
func VerifyRefresh ¶
Types ¶
type RefreshRequest ¶
type RefreshRequest struct {
NodeID string `json:"node_id"`
Timestamp string `json:"timestamp"`
Signature string `json:"signature"`
}
func SignRefresh ¶
func SignRefresh(privateKey ed25519.PrivateKey, nodeID string, timestamp time.Time) (RefreshRequest, error)
Click to show internal directories.
Click to hide internal directories.