static byte[] ForgeActivation(ActivationContent operation) { return(Bytes.Concat( ForgeMicheNat((int)OperationTag.Activation), ForgeTz1Address(operation.Address), Hex.Parse(operation.Secret))); }
static byte[] ForgeActivation(ActivationContent operation) { return(Bytes.Concat( ForgeTag(OperationTag.Activation), ForgePkh(operation.Address), Hex.Parse(operation.Secret))); }
static byte[] ForgeActivation(ActivationContent operation) { var res = ForgeNat(OperationTags[operation.Kind]); res = res.Concat(ForgeActivationAddress(operation.Address)); res = res.Concat(Hex.Parse(operation.Secret)); return(res); }
/// <summary> /// Builds the name of the reservoir structure. /// </summary> /// <param name="activationContent">Specifies the type of activation content.</param> /// <param name="resStructIdx">The zero-based index of the reservoir structure.</param> private string BuildResStructName(ActivationContent activationContent, int resStructIdx) { return("ResStruct-" + activationContent.ToString() + "-Cfg" + (resStructIdx + 1).ToString()); }
/// <summary> /// Builds the name of the neuron pool. /// </summary> /// <param name="activationContent">Specifies the type of activation content.</param> /// <param name="poolIdx">The zero-based index of the pool.</param> private string BuildPoolName(ActivationContent activationContent, int poolIdx) { return(activationContent.ToString() + "Pool" + (poolIdx + 1).ToString()); }