@@ -78,7 +78,7 @@ use colored::Colorize;
7878#[ derive( Clone ) ]
7979pub struct Process < N : Network > {
8080 /// The universal SRS.
81- universal_srs : Arc < UniversalSRS < N > > ,
81+ universal_srs : UniversalSRS < N > ,
8282 /// The mapping of program IDs to stacks.
8383 stacks : IndexMap < ProgramID < N > , Arc < Stack < N > > > ,
8484}
@@ -90,7 +90,7 @@ impl<N: Network> Process<N> {
9090 let timer = timer ! ( "Process:setup" ) ;
9191
9292 // Initialize the process.
93- let mut process = Self { universal_srs : Arc :: new ( UniversalSRS :: load ( ) ?) , stacks : IndexMap :: new ( ) } ;
93+ let mut process = Self { universal_srs : UniversalSRS :: load ( ) ?, stacks : IndexMap :: new ( ) } ;
9494 lap ! ( timer, "Initialize process" ) ;
9595
9696 // Initialize the 'credits.aleo' program.
@@ -145,7 +145,7 @@ impl<N: Network> Process<N> {
145145 let timer = timer ! ( "Process::load" ) ;
146146
147147 // Initialize the process.
148- let mut process = Self { universal_srs : Arc :: new ( UniversalSRS :: load ( ) ?) , stacks : IndexMap :: new ( ) } ;
148+ let mut process = Self { universal_srs : UniversalSRS :: load ( ) ?, stacks : IndexMap :: new ( ) } ;
149149 lap ! ( timer, "Initialize process" ) ;
150150
151151 // Initialize the 'credits.aleo' program.
@@ -183,7 +183,7 @@ impl<N: Network> Process<N> {
183183 #[ cfg( feature = "wasm" ) ]
184184 pub fn load_web ( ) -> Result < Self > {
185185 // Initialize the process.
186- let mut process = Self { universal_srs : Arc :: new ( UniversalSRS :: load ( ) ?) , stacks : IndexMap :: new ( ) } ;
186+ let mut process = Self { universal_srs : UniversalSRS :: load ( ) ?, stacks : IndexMap :: new ( ) } ;
187187
188188 // Initialize the 'credits.aleo' program.
189189 let program = Program :: credits ( ) ?;
@@ -200,7 +200,7 @@ impl<N: Network> Process<N> {
200200
201201 /// Returns the universal SRS.
202202 #[ inline]
203- pub const fn universal_srs ( & self ) -> & Arc < UniversalSRS < N > > {
203+ pub const fn universal_srs ( & self ) -> & UniversalSRS < N > {
204204 & self . universal_srs
205205 }
206206
0 commit comments