Skip to content

Commit

Permalink
Add initial files for Poseidon hash implementation. #119
Browse files Browse the repository at this point in the history
  • Loading branch information
kPatch committed Nov 14, 2024
1 parent 6f97c0b commit b4185ee
Show file tree
Hide file tree
Showing 19 changed files with 2,971 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/Sui-Unity-SDK/Code/Sui.ZKLogin/PoseidonLite.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

155 changes: 155 additions & 0 deletions Assets/Sui-Unity-SDK/Code/Sui.ZKLogin/PoseidonLite/Constants/C1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace OpenDive.Crypto.PoseidonLite.Constants
{
public class C1
{
public static readonly string[] C = new string[]
{
"CcRunsaOm9T+H6q6KUy6OKcaoXdTTN0bbH3A29Cr16c=",
"DANWUwiW7sQql+2TfzE1z8UUKzrkBbg0PB2D/6YEy4E=",
"Hiih2TVpitEULlEYK7VM9KAOpaq9Ymi9MX6pd8wVSjA=",
"J68tgxqdJ0gICWXbMOKY5A5XV8PgCNuWTPnisSuRJR8=",
"Hm8RzmD8j1E6ajz+Fq4XWkEpFGLyFM0Iear0NUW3TgM=",
"Kmc4TTu9XkOFQYGctoHwvgRGLtFMNhPY9xkgYmjRQtM=",
"C2b981YJOmEWCfjhL7/s8LmF44HwJRiJNkCPXVyfRdA=",
"AS7j7B541HCDDGEJPCreNwsmyDzFzr7t2qaFLb2wniE=",
"AlK6X2dgv739iPZ/gXXj/WzRxDGwmba7LRCOe0Rbsbk=",
"F5R0zOyl/2dsa+w871QpY1Q5Gok1/3HW71rqrXypMvE=",
"LCQmE3mlG/qSKP9KUD/U7Zwfl0omSWmzfholibvtK5E=",
"HMHXtiaS5j6sLyiL0GlbQ8L2P1AB/A/FU+ZsBVGAGwU=",
"JVBZMBqtqYuy7VX4UpeelgB4Tb8X+6zQXZ7/X9nJG1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wLp0OmLCw=",
"FXTH7wxDVF82qMoIvb3YsHXSlZ4vMitzFnXePhmCtNA=",
"Jp5LW3oushr9VnlwpxfO7FvUGEVxwlT9wG4Dp/+DePA=",
};

public static readonly string[][] M = new string[][]
{
new string[]
{
"Bm9vhdb2ioXsEDRTUaI6Oq8H84r4yVKnvOynC9KvetU=",
"K51LQRDJrpl3guFQmx0P2yCnwCu9i+pzBUYrn4Elseg="
},
new string[]
{
"DMV827CFB9Yr9npEk8wmL7bAnVVwE//x9XP0MSIfj/k=",
"EnTmSaMu01WjGm7WlyThra3oV+hutcOhIbzRR5QyA8g="
}
};
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b4185ee

Please sign in to comment.