Documentation
¶
Index ¶
- type NonceSignHandler
- func (handler *NonceSignHandler) AddUncheckedNode(hostID id.ID, nonce []byte, ref core.RecordRef)
- func (handler *NonceSignHandler) GetPrivateKey() *ecdsa.PrivateKey
- func (handler *NonceSignHandler) SignNonce(nonce []byte) ([]byte, error)
- func (handler *NonceSignHandler) SignedNonceIsCorrect(coordinator core.NetworkCoordinator, hostID id.ID, signedNonce []byte) bool
- type SignHandler
- type UncheckedNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NonceSignHandler ¶
type NonceSignHandler struct {
// contains filtered or unexported fields
}
NonceSignHandler is a component which signs and check authorization nonce.
func NewSignHandler ¶
func NewSignHandler(certificate core.Certificate) *NonceSignHandler
NewSignHandler creates a new sign handler.
func (*NonceSignHandler) AddUncheckedNode ¶
AddUncheckedNode adds a new node to authorization.
func (*NonceSignHandler) GetPrivateKey ¶
func (handler *NonceSignHandler) GetPrivateKey() *ecdsa.PrivateKey
GetPrivateKey returns private key
func (*NonceSignHandler) SignNonce ¶
func (handler *NonceSignHandler) SignNonce(nonce []byte) ([]byte, error)
SignNonce sign a nonce.
func (*NonceSignHandler) SignedNonceIsCorrect ¶
func (handler *NonceSignHandler) SignedNonceIsCorrect(coordinator core.NetworkCoordinator, hostID id.ID, signedNonce []byte) bool
SignedNonceIsCorrect checks a nonce sign.
type SignHandler ¶
type UncheckedNode ¶
UncheckedNodes is a map of not authorized nodes.
Click to show internal directories.
Click to hide internal directories.