mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-02-18 21:16:57 +00:00
18 lines
473 B
C#
18 lines
473 B
C#
using System;
|
|
using System.Text;
|
|
|
|
class ckzg {
|
|
[global::System.Runtime.InteropServices.DllImport("ckzg.dll", EntryPoint="hello")]
|
|
public static extern uint hello(uint a);
|
|
[global::System.Runtime.InteropServices.DllImport("ckzg.dll", EntryPoint="bytes_to_bls_field_wrap")]
|
|
public static extern void bytes_to_bls_field(byte[] b);
|
|
}
|
|
|
|
class tests {
|
|
private static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("OK");
|
|
Console.WriteLine(ckzg.hello(32));
|
|
}
|
|
}
|