diff --git a/kms/kms.go b/kms/kms.go index de873d8328858a46611af87d447bc4dc6dae2b20..f74083370b56d9fe339b003c492d66935fe061c3 100644 --- a/kms/kms.go +++ b/kms/kms.go @@ -41,6 +41,11 @@ type EKMS struct { // Will keep information about the quantum elements that this EKMS is talking to // This actually constitutes a quantum element with only a single link + +type QuantumElementInterface interface { + GetQlID() qlElementId +} + type QuantumElement struct { qlID qlElementId QuantumElementLink *quantumlayer.QuantumlayerEmuPRNG // contains information about the quantum links @@ -164,3 +169,7 @@ func (kms *EKMS) AddPeer(kmsPeerSocket string, servingQLE *QuantumElement) { func (kms *EKMS) RemovePeer(kmsPeerSocket string) { } + +func (qle *QuantumElement) GetQlID() (myId qlElementId) { + return qle.qlID +}