diff --git a/src/test/scala/com/github/fluency03/blockchain/crypto/SHA256Test.scala b/src/test/scala/com/github/fluency03/blockchain/crypto/SHA256Test.scala index 07791fe..1c89b2b 100644 --- a/src/test/scala/com/github/fluency03/blockchain/crypto/SHA256Test.scala +++ b/src/test/scala/com/github/fluency03/blockchain/crypto/SHA256Test.scala @@ -38,6 +38,17 @@ class SHA256Test extends FlatSpec with Matchers { SHA256.hash("9C3AC7CD5D2673694C492CC508D788CBCACCDD357956EBCF10BD6C5BDF67AA5C".hex2Bytes) shouldEqual "27D7CF19837C3D3F713BDB483CB98A00D2917D5039D71348E90ADC68D2399F6D".toLowerCase + SHA256.hash256("00010966776006953D5567439E5E39F86A0D273BEE".hex2Bytes) shouldEqual + "D61967F63C7DD183914A4AE452C9F6AD5D462CE3D277798075B107615C1A8A30".toLowerCase + + SHA256.hash256Digest("00010966776006953D5567439E5E39F86A0D273BEE".hex2Bytes) shouldEqual + "D61967F63C7DD183914A4AE452C9F6AD5D462CE3D277798075B107615C1A8A30".hex2Bytes + + SHA256.hash256("0045590A0195EB451711B9D076E4C0CD04675AAD55".hex2Bytes) shouldEqual + "E816C7F2DD7F1E5521B1C3066B15D7331039C2447FA4F3AA5F35E28B2B949CE1".toLowerCase + + SHA256.hash256Digest("0045590A0195EB451711B9D076E4C0CD04675AAD55".hex2Bytes) shouldEqual + "E816C7F2DD7F1E5521B1C3066B15D7331039C2447FA4F3AA5F35E28B2B949CE1".hex2Bytes }