GetKeys returns the current set of keys on the ring.
()
| 144 | |
| 145 | // GetKeys returns the current set of keys on the ring. |
| 146 | func (k *Keyring) GetKeys() [][]byte { |
| 147 | k.l.Lock() |
| 148 | defer k.l.Unlock() |
| 149 | |
| 150 | return k.keys |
| 151 | } |
| 152 | |
| 153 | // GetPrimaryKey returns the key on the ring at position 0. This is the key used |
| 154 | // for encrypting messages, and is the first key tried for decrypting messages. |
no outgoing calls