NewMasterKeyFromFingerprint takes a PGP fingerprint and returns a new MasterKey with that fingerprint.
(fingerprint string)
| 92 | // NewMasterKeyFromFingerprint takes a PGP fingerprint and returns a new |
| 93 | // MasterKey with that fingerprint. |
| 94 | func NewMasterKeyFromFingerprint(fingerprint string) *MasterKey { |
| 95 | return &MasterKey{ |
| 96 | Fingerprint: strings.Replace(fingerprint, " ", "", -1), |
| 97 | CreationDate: time.Now().UTC(), |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | // MasterKeysFromFingerprintString takes a comma separated list of PGP |
| 102 | // fingerprints and returns a slice of new MasterKeys with those fingerprints. |
no outgoing calls