コード例 #1
0
        private async UniTaskVoid V()
        {
            ClientCore.Start();
            ClientCore.SendMessageToMyCoreNode(MsgType.Enhanced, null);
            var c = await ClientCore.ReceiveCertification();

            Debugger.Log(c);
        }
コード例 #2
0
        private async UniTaskVoid Verify()
        {
            ClientCore.Start();
            ClientCore.SendMessageToMyCoreNode(MsgType.Enhanced, verifierManager.CertificateId);
            var certification = await ClientCore.ReceiveCertification();

            verifierManager.SetCertification(certification);
            var hash = Hash.GetHash(verifierManager.CertificateId + verifierManager.HolderName +
                                    verifierManager.IssueDate);

            if (hash != verifierManager.Hash)
            {
                NotificationSystem.ShowDialog("エラー", "IDが違います", "ok");
            }
        }