Exemple #1
0
        private ScoreSheet Sign(ScoreSheet scoreSheet)
        {
            var signature = scoreSheet.ComputeSignature(_signingKey);

            return(scoreSheet.Sign(signature));
        }
Exemple #2
0
        public bool IsAuthentic(ScoreSheet scoreSheet)
        {
            var expectedSignature = scoreSheet.ComputeSignature(_signingKey);

            return(scoreSheet.Signature == expectedSignature);
        }