Skip to content

x/crypto/openpgp: NewEntity won't Serialize #6483

@jaekwon

Description

@jaekwon
The entity returned from NewEntity won't serialize fully. The returned error is
"openpgp: invalid argument: Signature: need to call Sign, SignUserId or SignKey
before Serialize".

Calling SerializePrivate() first mitigates this problem, as that function ensures that
the signature packets are properly signed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions