(id string)
| 464 | } |
| 465 | |
| 466 | func (p *Postgres) GetKeyFromID(id string) (*KeyPair, error) { |
| 467 | return p.getKey(sq.Eq{"id": id}) |
| 468 | } |
| 469 | |
| 470 | func (p *Postgres) GetKeyFromPublic(public string) (*KeyPair, error) { |
| 471 | return p.getKey(sq.Eq{"public": public}) |