koi_net.components.knowledge_handlers.secure_profile_handler
Classes
|
Validates the identity and public keys of incoming nodes. |
- class koi_net.components.knowledge_handlers.secure_profile_handler.SecureProfileHandler(log, pipeline, identity)[source]
Bases:
KnowledgeHandlerValidates the identity and public keys of incoming nodes.
Interrupts knowledge processing for node profiles which have a mismatched public key and hash, or using the same base url as this node.
- Parameters:
log (Logger)
pipeline (KnowledgePipeline)
identity (NodeIdentity)
- handle(kobj)[source]
- Parameters:
kobj (KnowledgeObject)
- handler_type: HandlerType = 'bundle'
- identity: NodeIdentity
- rid_types: tuple[RIDType] = (<RIDType 'orn:koi-net.node'>,)