code: func DeserializeSCTList(serializedSCTList []byte) ([]ct.SignedCertificateTimestamp, error) {
  	var sctList ctx509.SignedCertificateTimestampList
  	rest, err := cttls.Unmarshal(serializedSCTList, &sctList)
  	if err != nil {
  		return nil, err
  	}
  	if len(rest) != 0 {
  		return nil, cferr.Wrap(cferr.CTError, cferr.Unknown, errors.New("serialized SCT list contained trailing garbage"))
  	}
  	list := make([]ct.SignedCertificateTimestamp, len(sctList.SCTList))
  	for i, serializedSCT := range sctList.SCTList {
  		var sct ct.SignedCertificateTimestamp
  		rest, err := cttls.Unmarshal(serializedSCT.Val, &sct)
  		if err != nil {
  			return nil, err
  		}
  		if len(rest) != 0 {
  			return nil, cferr.Wrap(cferr.CTError, cferr.Unknown, errors.New("serialized SCT contained trailing garbage"))
  		}
  		list[i] = sct
  	}
  	return list, nil
  }
docs: // DeserializeSCTList deserializes a list of SCTs.