()
| 78 | } |
| 79 | |
| 80 | func genUUID() (string, error) { |
| 81 | res, err := uuid.NewRandom() |
| 82 | if err != nil { |
| 83 | return "", errors.Wrap(err, "generating a random uuid") |
| 84 | } |
| 85 | |
| 86 | return res.String(), nil |
| 87 | |
| 88 | } |
| 89 | |
| 90 | // Legacy performs migration on JSON-based dnote if necessary |
| 91 | func Legacy(ctx context.DnoteCtx) error { |
no outgoing calls
no test coverage detected