//Make an EC address class using the IOT-SAS public key, and override the signing function public FactomSharp.ECAddress GetECAddress(FactomdRestClient factomd) { var ecAddress = new FactomSharp.ECAddress(factomd, GetPublicECAddress()); ecAddress.SignFunction = (data) => { return(SignEd25519(data)); }; ECAddressClass = ecAddress; return(ecAddress); }
/// <summary> /// Open a new or existing chain. /// </summary> /// <param name="ecAddress">Ec address.</param> /// <param name="existingChainID">Existing chain identifier.</param> public Chain(ECAddress ecAddress, String existingChainID = null) { EcAddress = ecAddress; FactomD = ecAddress.FactomD; ChainID = existingChainID; }