package Ġio . pro venance . object store . gateway . configuration Ċ Ċ import Ġio . pro venance . client . grpc . Gas Estimation Method Ċ import Ġio . pro venance . client . grpc . Pb Client Ċ import Ġio . pro venance . scope . encryption . model . Direct Key Ref Ċ import Ġio . pro venance . scope . encryption . model . Key Ref Ċ import Ġio . pro venance . scope . encryption . util . getAddress Ċ import Ġio . pro venance . scope . encryption . util . to Java PrivateKey Ċ import Ġio . pro venance . scope . encryption . util . to KeyPair Ċ import Ġio . pro venance . scope . object store . client . Cached Os Client Ċ import Ġio . pro venance . scope . object store . client . Os Client Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ Ċ @ Configuration Ċ class ĠApp Config Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġobject Store Client ( object Store Properties : ĠObject Store Properties , Ġpro venance Properties : ĠPro venance Properties ): ĠCached Os Client Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġos Client Ġ= ĠOs Client ( object Store Properties . uri , Ġ 3 0 0 0 0 ) ĊĊĠĠĠĠĠĠĠ Ġreturn ĠCached Os Client ( os Client , Ġobject Store Properties . de cryption Worker Threads , Ġobject Store Properties . concurrency Size , Ġobject Store Properties . cache Record Size Bytes ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġencryption Keys ( pro venance Properties : ĠPro venance Properties , Ġobject Store Properties : ĠObject Store Properties ): ĠMap < String , ĠKey Ref > Ġ= Ġobject Store Properties . private Keys . map Ġ{ ĊĠĠĠĠĠĠĠ Ġit . to Java PrivateKey (). to KeyPair (). let Ġ{ Ġkey Pair Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġkey Pair . public . getAddress ( pro venance Properties . main Net ) Ġto ĠDirect Key Ref ( key Pair ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ}. toMap () ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġpb Client ( pro venance Properties : ĠPro venance Properties ): ĠP b Client Ġ= ĠP b Client ( ĊĠĠĠĠĠĠĠ Ġchain Id Ġ= Ġpro venance Properties . chain Id , ĊĠĠĠĠĠĠĠ Ġchannel Uri Ġ= Ġpro venance Properties . channel Uri , ĊĠĠĠĠĠĠĠ Ġgas Estimation Method Ġ= ĠG as Estimation Method . MSG _ F EE _ CAL C UL ATION , ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġaccount Addresses ( encryption Keys : ĠMap < String , ĠKey Ref >): ĠSet < String > Ġ= Ġencryption Keys . keys Ċ } Ċ