Example #1
0
 static byte[] ForgeReveal(RevealContent operation)
 {
     return(Bytes.Concat(
                ForgeMicheNat((int)OperationTag.Reveal),
                ForgeTzAddress(operation.Source),
                ForgeMicheNat(operation.Fee),
                ForgeMicheNat(operation.Counter),
                ForgeMicheNat(operation.GasLimit),
                ForgeMicheNat(operation.StorageLimit),
                ForgePublicKey(operation.PublicKey)));
 }
Example #2
0
        static byte[] ForgeRevelation(RevealContent operation)
        {
            var res = ForgeNat(OperationTags[operation.Kind]);

            res = res.Concat(ForgeSource(operation.Source));
            res = res.Concat(ForgeNat(operation.Fee));
            res = res.Concat(ForgeNat(operation.Counter));
            res = res.Concat(ForgeNat(operation.GasLimit));
            res = res.Concat(ForgeNat(operation.StorageLimit));
            res = res.Concat(ForgePublicKey(operation.PublicKey));

            return(res);
        }