(keyringId, attrKey)
| 47 | } |
| 48 | |
| 49 | get(keyringId, attrKey) { |
| 50 | if (!this.has(keyringId)) { |
| 51 | throw new Error(`Keyring does not exist for id: ${keyringId}`); |
| 52 | } |
| 53 | const keyringAttr = super.get(keyringId) || {}; |
| 54 | if (attrKey) { |
| 55 | return keyringAttr[attrKey]; |
| 56 | } |
| 57 | return keyringAttr; |
| 58 | } |
| 59 | |
| 60 | async create(keyringId, attrMap = {}) { |
| 61 | super.set(keyringId, attrMap); |
no test coverage detected