/// <summary> /// Creates the Sha256HashAsset /// </summary> internal void Start() { hasher = SHA256.Create(); if (ArtifactCompounds.Count > 0) { R2API.Logger.LogWarning($"Artifact Code of name {name} is using the deprecated ArtifactCompounds list."); artifactSequence = CreateSequenceFromList(); hashAsset = CreateHashAsset(CreateHash()); } else { artifactSequence = CreateSequenceFromVectors(); hashAsset = CreateHashAsset(CreateHash()); } }
/// <summary> /// Creates the Sha256HashAsset /// </summary> public void Start() { hasher = SHA256.Create(); List <int> sequence = new List <int>(); sequence.Add(ArtifactCompounds[2]); sequence.Add(ArtifactCompounds[5]); sequence.Add(ArtifactCompounds[8]); sequence.Add(ArtifactCompounds[1]); sequence.Add(ArtifactCompounds[7]); sequence.Add(ArtifactCompounds[4]); sequence.Add(ArtifactCompounds[0]); sequence.Add(ArtifactCompounds[3]); sequence.Add(ArtifactCompounds[6]); artifactSequence = sequence.ToArray(); hashAsset = CreateHashAsset(CreateHash()); }