func (a *DefaultAuthority) leafMaker(groupKey string) LeafMaker {
	return func(cert *x509.Certificate, chain []*x509.Certificate,
		signer crypto.Signer) (Leaf, error) {
		leaf := NewDefaultLeaf(groupKey, cert, chain, signer)
		a.leafs.Store(groupKey, leaf)
		return leaf, nil
	}
}
// leafMaker is responsible for providing a method to make new leafs after
// request signing.
leafMaker is responsible for providing a method to make new leafs after
request signing.
// leafMaker is responsible for providing a method to make new leafs after // request signing .
func (a *DefaultAuthority) leafMaker(groupKey string) LeafMaker {
	return func(cert *x509.Certificate, chain []*x509.Certificate,
		signer crypto.Signer) (Leaf, error) {
		leaf := NewDefaultLeaf(groupKey, cert, chain, signer)
		a.leafs.Store(groupKey, leaf)
		return leaf, nil
	}
}
func ( a * DefaultAuthority ) leafMaker ( groupKey string ) LeafMaker { return func ( cert * x509 . Certificate , chain [ ] * x509 . Certificate , signer crypto . Signer ) ( Leaf , error ) { leaf := NewDefaultLeaf ( groupKey , cert , chain , signer ) a . leafs . Store ( groupKey , leaf ) return leaf , nil } }
leafMaker is responsible for providing a method to make new leafs after
request signing.
leafMaker is responsible for providing a method to make new leafs after request signing .