Documentation ¶
Index ¶
- Constants
- Variables
- func MakeCodec() *amino.Codec
- func MustMarshalJson(obj interface{}) []byte
- func RegisterCodec(cdc *amino.Codec)
- func VerityCrt(caPublicKeys []crypto.PubKey, crt Certificate) bool
- type Certificate
- type CertificateSigningRequest
- type CommonSubject
- type Issuer
- type QCPSubject
- type QSCSubject
- type Subject
- type TrustCrts
Constants ¶
View Source
const ( CommonSubjAminoRoute = "certificate/CommonSubject" QSCSubjAminoRoute = "certificate/QSCSubject" QCPSubjAminoRoute = "certificate/QCPSubject" )
Variables ¶
View Source
var Codec = amino.NewCodec()
Functions ¶
func MustMarshalJson ¶ added in v0.6.0
func MustMarshalJson(obj interface{}) []byte
func RegisterCodec ¶
Types ¶
type Certificate ¶
type Certificate struct { CSR CertificateSigningRequest `json:"csr"` CA Issuer `json:"ca"` Signature []byte `json:"signature"` }
func (Certificate) PublicKey ¶
func (crt Certificate) PublicKey() crypto.PubKey
type CommonSubject ¶
type CommonSubject struct {
CN string `json:"cn"`
}
type QCPSubject ¶
type QSCSubject ¶
Click to show internal directories.
Click to hide internal directories.