Skip to content

Commit

Permalink
fix: bonsol working in codespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jac18281828 authored Oct 19, 2024
1 parent 84ad74b commit 2372122
Show file tree
Hide file tree
Showing 4 changed files with 674 additions and 2,755 deletions.
2 changes: 1 addition & 1 deletion cli/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use base64::Engine as _;
use bonsol_prover::input_resolver::{ProgramInput, ResolvedInput};
use bonsol_sdk::instructions::{CallbackConfig, ExecutionConfig};
use bonsol_sdk::{InputT, InputType, ProgramInputType};
use clap::{Args, ValueEnum};
use clap::Args;
use rand::distributions::Alphanumeric;
use rand::Rng;
use serde::{Deserialize, Serialize};
Expand Down
125 changes: 51 additions & 74 deletions onchain/bonsol/src/verifying_key.rs
Original file line number Diff line number Diff line change
@@ -1,81 +1,58 @@
use groth16_solana::groth16::Groth16Verifyingkey;

pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey {
nr_pubinputs: 6,
pub const VERIFYINGKEY: Groth16Verifyingkey = Groth16Verifyingkey {
nr_pubinputs: 6,

vk_alpha_g1: [
45, 77, 154, 167, 227, 2, 217, 223, 65, 116, 157, 85, 7, 148, 157, 5, 219, 234, 51, 251,
177, 108, 100, 59, 34, 245, 153, 162, 190, 109, 242, 226, 20, 190, 221, 80, 60, 55, 206,
176, 97, 216, 236, 96, 32, 159, 227, 69, 206, 137, 131, 10, 25, 35, 3, 1, 240, 118, 202,
255, 0, 77, 25, 38,
],
vk_alpha_g1: [
45,77,154,167,227,2,217,223,65,116,157,85,7,148,157,5,219,234,51,251,177,108,100,59,34,245,153,162,190,109,242,226,
20,190,221,80,60,55,206,176,97,216,236,96,32,159,227,69,206,137,131,10,25,35,3,1,240,118,202,255,0,77,25,38,
],

vk_beta_g2: [
9, 103, 3, 47, 203, 247, 118, 209, 175, 201, 133, 248, 136, 119, 241, 130, 211, 132, 128,
166, 83, 242, 222, 202, 169, 121, 76, 188, 59, 243, 6, 12, 14, 24, 120, 71, 173, 76, 121,
131, 116, 208, 214, 115, 43, 245, 1, 132, 125, 214, 139, 192, 224, 113, 36, 30, 2, 19, 188,
127, 193, 61, 183, 171, 48, 76, 251, 209, 224, 138, 112, 74, 153, 245, 232, 71, 217, 63,
140, 60, 170, 253, 222, 196, 107, 122, 13, 55, 157, 166, 154, 77, 17, 35, 70, 167, 23, 57,
193, 177, 164, 87, 168, 199, 49, 49, 35, 210, 77, 47, 145, 146, 248, 150, 183, 198, 62,
234, 5, 169, 213, 127, 6, 84, 122, 208, 206, 200,
],
vk_beta_g2: [
9,103,3,47,203,247,118,209,175,201,133,248,136,119,241,130,211,132,128,166,83,242,222,202,169,121,76,188,59,243,6,12,
14,24,120,71,173,76,121,131,116,208,214,115,43,245,1,132,125,214,139,192,224,113,36,30,2,19,188,127,193,61,183,171,
48,76,251,209,224,138,112,74,153,245,232,71,217,63,140,60,170,253,222,196,107,122,13,55,157,166,154,77,17,35,70,167,
23,57,193,177,164,87,168,199,49,49,35,210,77,47,145,146,248,150,183,198,62,234,5,169,213,127,6,84,122,208,206,200,
],

vk_gamme_g2: [
25, 142, 147, 147, 146, 13, 72, 58, 114, 96, 191, 183, 49, 251, 93, 37, 241, 170, 73, 51,
53, 169, 231, 18, 151, 228, 133, 183, 174, 243, 18, 194, 24, 0, 222, 239, 18, 31, 30, 118,
66, 106, 0, 102, 94, 92, 68, 121, 103, 67, 34, 212, 247, 94, 218, 221, 70, 222, 189, 92,
217, 146, 246, 237, 9, 6, 137, 208, 88, 95, 240, 117, 236, 158, 153, 173, 105, 12, 51, 149,
188, 75, 49, 51, 112, 179, 142, 243, 85, 172, 218, 220, 209, 34, 151, 91, 18, 200, 94, 165,
219, 140, 109, 235, 74, 171, 113, 128, 141, 203, 64, 143, 227, 209, 231, 105, 12, 67, 211,
123, 76, 230, 204, 1, 102, 250, 125, 170,
],
vk_gamme_g2: [
25,142,147,147,146,13,72,58,114,96,191,183,49,251,93,37,241,170,73,51,53,169,231,18,151,228,133,183,174,243,18,194,
24,0,222,239,18,31,30,118,66,106,0,102,94,92,68,121,103,67,34,212,247,94,218,221,70,222,189,92,217,146,246,237,
9,6,137,208,88,95,240,117,236,158,153,173,105,12,51,149,188,75,49,51,112,179,142,243,85,172,218,220,209,34,151,91,
18,200,94,165,219,140,109,235,74,171,113,128,141,203,64,143,227,209,231,105,12,67,211,123,76,230,204,1,102,250,125,170,
],

vk_delta_g2: [
3, 176, 60, 213, 239, 250, 149, 172, 155, 238, 148, 241, 245, 239, 144, 113, 87, 189, 164,
129, 44, 207, 11, 76, 145, 244, 43, 182, 41, 248, 58, 28, 26, 160, 133, 255, 40, 23, 154,
18, 217, 34, 219, 160, 84, 112, 87, 204, 170, 233, 75, 157, 105, 207, 170, 78, 96, 64, 31,
234, 127, 62, 3, 51, 17, 12, 16, 19, 79, 32, 11, 25, 246, 73, 8, 70, 213, 24, 201, 174,
168, 104, 54, 110, 251, 114, 40, 202, 92, 145, 210, 148, 13, 3, 7, 98, 30, 96, 243, 31,
203, 247, 87, 232, 55, 232, 103, 23, 131, 24, 131, 45, 11, 45, 116, 213, 158, 47, 234, 28,
113, 66, 223, 24, 125, 63, 198, 211,
],
vk_delta_g2: [
3,176,60,213,239,250,149,172,155,238,148,241,245,239,144,113,87,189,164,129,44,207,11,76,145,244,43,182,41,248,58,28,
26,160,133,255,40,23,154,18,217,34,219,160,84,112,87,204,170,233,75,157,105,207,170,78,96,64,31,234,127,62,3,51,
17,12,16,19,79,32,11,25,246,73,8,70,213,24,201,174,168,104,54,110,251,114,40,202,92,145,210,148,13,3,7,98,
30,96,243,31,203,247,87,232,55,232,103,23,131,24,131,45,11,45,116,213,158,47,234,28,113,66,223,24,125,63,198,211,
],

vk_ic: &[
[
18, 172, 154, 37, 220, 213, 225, 168, 50, 169, 6, 26, 8, 44, 21, 221, 29, 97, 170, 156,
77, 85, 53, 5, 115, 157, 15, 93, 101, 220, 59, 228, 2, 90, 167, 68, 88, 30, 190, 122,
217, 23, 49, 145, 28, 137, 133, 105, 16, 111, 245, 162, 211, 15, 62, 238, 43, 35, 198,
14, 233, 128, 172, 212,
],
[
7, 7, 185, 32, 188, 151, 140, 2, 242, 146, 250, 226, 3, 110, 5, 123, 229, 66, 148, 17,
76, 204, 60, 135, 105, 216, 131, 246, 136, 161, 66, 63, 46, 50, 160, 148, 183, 88, 149,
84, 247, 188, 53, 123, 246, 52, 129, 172, 210, 213, 85, 85, 194, 3, 56, 55, 130, 164,
101, 7, 135, 255, 102, 66,
],
[
11, 202, 54, 226, 203, 230, 57, 75, 62, 36, 151, 81, 133, 63, 150, 21, 17, 1, 28, 113,
72, 227, 54, 244, 253, 151, 70, 68, 133, 15, 195, 71, 46, 222, 124, 154, 207, 72, 207,
58, 55, 41, 250, 61, 104, 113, 78, 42, 132, 53, 212, 250, 109, 184, 247, 244, 9, 193,
83, 177, 252, 223, 155, 139,
],
[
27, 138, 249, 153, 219, 251, 179, 146, 124, 9, 28, 194, 170, 242, 1, 228, 136, 203,
172, 195, 226, 198, 182, 251, 90, 37, 249, 17, 46, 4, 242, 167, 43, 145, 162, 106, 169,
46, 27, 111, 87, 34, 148, 159, 25, 42, 129, 200, 80, 213, 134, 216, 26, 96, 21, 127,
62, 156, 240, 79, 103, 156, 204, 214,
],
[
43, 95, 73, 78, 214, 116, 35, 91, 138, 193, 117, 11, 223, 213, 167, 97, 95, 0, 45, 74,
29, 206, 254, 221, 208, 110, 218, 90, 7, 108, 205, 13, 47, 229, 32, 173, 32, 32, 170,
185, 203, 186, 129, 127, 203, 185, 168, 99, 184, 167, 111, 248, 143, 20, 249, 18, 197,
231, 22, 101, 178, 173, 94, 130,
],
[
15, 28, 60, 13, 93, 157, 160, 250, 3, 102, 104, 67, 205, 228, 232, 46, 134, 155, 165,
37, 47, 206, 60, 37, 213, 148, 3, 32, 177, 196, 212, 147, 33, 75, 252, 255, 116, 244,
37, 246, 254, 140, 13, 7, 179, 7, 72, 45, 139, 200, 187, 47, 54, 8, 246, 130, 135, 170,
1, 189, 11, 105, 232, 9,
],
],
};
vk_ic: &[
[
18,172,154,37,220,213,225,168,50,169,6,26,8,44,21,221,29,97,170,156,77,85,53,5,115,157,15,93,101,220,59,228,
2,90,167,68,88,30,190,122,217,23,49,145,28,137,133,105,16,111,245,162,211,15,62,238,43,35,198,14,233,128,172,212,
],
[
7,7,185,32,188,151,140,2,242,146,250,226,3,110,5,123,229,66,148,17,76,204,60,135,105,216,131,246,136,161,66,63,
46,50,160,148,183,88,149,84,247,188,53,123,246,52,129,172,210,213,85,85,194,3,56,55,130,164,101,7,135,255,102,66,
],
[
11,202,54,226,203,230,57,75,62,36,151,81,133,63,150,21,17,1,28,113,72,227,54,244,253,151,70,68,133,15,195,71,
46,222,124,154,207,72,207,58,55,41,250,61,104,113,78,42,132,53,212,250,109,184,247,244,9,193,83,177,252,223,155,139,
],
[
27,138,249,153,219,251,179,146,124,9,28,194,170,242,1,228,136,203,172,195,226,198,182,251,90,37,249,17,46,4,242,167,
43,145,162,106,169,46,27,111,87,34,148,159,25,42,129,200,80,213,134,216,26,96,21,127,62,156,240,79,103,156,204,214,
],
[
43,95,73,78,214,116,35,91,138,193,117,11,223,213,167,97,95,0,45,74,29,206,254,221,208,110,218,90,7,108,205,13,
47,229,32,173,32,32,170,185,203,186,129,127,203,185,168,99,184,167,111,248,143,20,249,18,197,231,22,101,178,173,94,130,
],
[
15,28,60,13,93,157,160,250,3,102,104,67,205,228,232,46,134,155,165,37,47,206,60,37,213,148,3,32,177,196,212,147,
33,75,252,255,116,244,37,246,254,140,13,7,179,7,72,45,139,200,187,47,54,8,246,130,135,170,1,189,11,105,232,9,
],
]
};
Loading

0 comments on commit 2372122

Please sign in to comment.