Esempio n. 1
0
 public static Certificate Parse(byte[] encodedCert)
 {
     //Certificate will be parsed using system call or native smart contract
     //and then certificate fields will be returned in Certificate structure.
     //now returns mock certificate field data
     //todo: add real implementation code
     //return NeoVmCertificateParser.Parse(encodedCert);
     return(NetCoreCertificateParser.Parse(encodedCert));
 }
        public static Certificate Parse(byte[] encodedCert)
        {
            //Certificate will be parsed using system call or native smart contract
            //and then certificate fields will be returned in Certificate structure.
            //now works with test native smart contract
            ////todo: add real implementation code
#if NET_CORE
            return(NetCoreCertificateParser.Parse(encodedCert));
#endif
#if NEO
            return(NeoVMNativeSmartContractCertificateParser.parse(encodedCert));
#endif
        }