Skip to content

Go 1.18 Generics #16

Description

@pkasila

Is your feature request related to a problem? Please describe.
Go 1.18 brings generics, so it would be nice to use them for EncryptedValue and SignedValue.

Describe the solution you'd like
Update EncryptedValue and SignedValue to:

type EncryptedValue[T any] struct {
	Raw T `json:"Raw"`
}
type SignedValue[T any] struct {
	Raw   T           `json:"Raw"`
	Valid bool        `json:"Valid"`
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions