INNER CODE UNIT · Go

trimUntrustedComment

aead/minisign · minisign.go:212

func trimUntrustedComment(text []byte) []byte {
	s := bytes.SplitN(text, []byte{'\n'}, 2)
	if len(s) == 2 && strings.HasPrefix(string(s[0]), "untrusted comment: ") {
		return s[1]
	}
	return s[0]
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…