func GetOneKey(jw *jsonw.Wrapper) (*PGPKeyBundle, error) { s, err := jw.GetString() if err != nil { return nil, err } return ReadOneKeyFromString(s) }
func GetPGPFingerprint(w *jsonw.Wrapper) (*PGPFingerprint, error) { s, err := w.GetString() if err != nil { return nil, err } return PGPFingerprintFromHex(s) }
func GetSigID(w *jsonw.Wrapper, suffix bool) (keybase1.SigID, error) { s, err := w.GetString() if err != nil { return "", err } return keybase1.SigIDFromString(s, suffix) }
func GetNodeHash(w *jsonw.Wrapper) (NodeHash, error) { s, err := w.GetString() if err != nil { return nil, err } ret, err := NodeHashFromHex(s) return ret, err }
func GetUID(w *jsonw.Wrapper) (keybase1.UID, error) { s, err := w.GetString() var nilUID keybase1.UID if err != nil { return nilUID, err } return UIDFromHex(s) }
func GetKID(w *jsonw.Wrapper) (kid keybase1.KID, err error) { var s string s, err = w.GetString() if err != nil { return } kid = keybase1.KIDFromString(s) return }
func GetLinkID(w *jsonw.Wrapper) (LinkID, error) { if w.IsNil() { return nil, nil } s, err := w.GetString() if err != nil { return nil, err } ret, err := LinkIDFromHex(s) return ret, err }
func getString(w *jsonw.Wrapper) (interface{}, error) { return w.GetString() }