Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
using System; | |
namespace MagicTheProgramming | |
{ | |
public class Weapon : CreatureDecorator, ICreature | |
{ | |
protected int _powermodifier; | |
protected int _toughnessmodifier; | |
public Weapon(ICreature creature, int powermod, int toughnessmod) |
using System; | |
namespace MagicTheProgramming | |
{ | |
public class Shield : CreatureDecorator, ICreature | |
{ | |
public Shield(ICreature creature) : base(creature) {} | |
public override int Toughness => base.Toughness + 1; | |
} |
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
namespace MagicTheProgramming | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
using System; | |
namespace MagicTheProgramming | |
{ | |
public class Sword : CreatureDecorator, ICreature | |
{ | |
public Sword(ICreature creature) : base(creature) {} | |
public override int Toughness => base.Toughness + 1; | |
public override int Power => base.Power + 1; |
using System; | |
namespace MagicTheProgramming | |
{ | |
public class CreatureDecorator : ICreature | |
{ | |
protected ICreature _creature; | |
public CreatureDecorator(ICreature creature) | |
{ |
using System; | |
namespace MagicTheProgramming | |
{ | |
public interface ICreature | |
{ | |
int Power {get;} | |
int Toughness {get;} | |
string Name {get;} | |
} |
using System; | |
namespace MagicTheProgramming | |
{ | |
public class Creature : ICreature | |
{ | |
public int Power {get;} | |
public int Toughness {get;} | |
public string Name {get;} |
import { Drizzle, generateStore } from 'drizzle'; | |
import options from './drizzleOptions'; | |
const drizzleStore = generateStore(options); | |
const drizzle = new Drizzle(options, drizzleStore); | |
drizzleStore.subscribe(() => { | |
const state = drizzleStore.getState(); | |
// We'll make use of this state object later on when |
import CoinToss from '@edgefund/core/build/contracts/CoinToss'; | |
export default { | |
contracts: [ | |
CoinToss | |
], | |
events: { | |
CoinToss: ['betPlaced', 'bankRollFunded'] | |
}, | |
polls: { |