package Ġio . nova foundation . nova . feature _ account _ impl . domain . account . advanced Encryption . val i ad tion Ċ Ċ import Ġio . nova foundation . nova . common . utils . input . Input Ċ import Ġio . nova foundation . nova . common . utils . input . fold Ċ import Ġio . nova foundation . nova . common . validation . Validation Status Ċ import Ġio . nova foundation . nova . common . validation . valid Or Error Ċ import Ġjp . co . sor am its u . fe ar less _ utils . encrypt . junction . B IP 3 2 J unction Decoder Ċ import Ġjp . co . sor am its u . fe ar less _ utils . encrypt . junction . J unction Decoder Ċ import Ġjp . co . sor am its u . fe ar less _ utils . encrypt . junction . Sub strate J unction Decoder Ċ Ċ sealed Ġclass ĠDer ivation Path Validation ( ĊĠĠĠ Ġprivate Ġval Ġj unction Decoder : ĠJ unction Decoder , ĊĠĠĠ Ġprivate Ġval Ġvalue Extractor : Ġ( Advanced Encryption Validation Payload ) Ġ-> ĠInput < String >, ĊĠĠĠ Ġprivate Ġval Ġfailure : ĠAdvanced Encryption Validation Failure Ċ ) Ġ: ĠAdvanced Encryption Validation Ġ{ ĊĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġvalidate ( value : ĠAdvanced Encryption Validation Payload ): ĠValidation Status < Advanced Encryption Validation Failure > Ġ{ ĊĠĠĠĠĠĠĠ Ġval ĠisValid Ġ= Ġvalue Extractor ( value ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. fold ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Enabled Ġ= Ġ{ Ġit . isEmpty () Ġ|| Ġcheck Can Decode ( it ) Ġ}, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Disabled Ġ= Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġvalid Or Error ( isValid ) Ġ{ Ġfailure Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġcheck Can Decode ( der ivation Path : ĠString ): ĠBoolean Ġ= Ġrun Catch ing Ġ{ Ġj unction Decoder . decode ( der ivation Path ) Ġ}. is Success Ċ } Ċ Ċ class ĠSub strate Der ivation Path Validation Ġ: ĠDer ivation Path Validation ( ĊĠĠĠ Ġj unction Decoder Ġ= ĠSub strate J unction Decoder , ĊĠĠĠ Ġvalue Extractor Ġ= ĠAdvanced Encryption Validation Payload :: substr ate Der ivation Path Input , ĊĠĠĠ Ġfailure Ġ= ĠAdvanced Encryption Validation Failure . SUB STR ATE _ DER IV ATION _ PATH Ċ ) Ċ Ċ class ĠEthereum Der ivation Path Validation Ġ: ĠDer ivation Path Validation ( ĊĠĠĠ Ġj unction Decoder Ġ= ĠB IP 3 2 J unction Decoder , ĊĠĠĠ Ġvalue Extractor Ġ= ĠAdvanced Encryption Validation Payload :: ethereum Der ivation Path Input , ĊĠĠĠ Ġfailure Ġ= ĠAdvanced Encryption Validation Failure . ET HERE UM _ DER IV ATION _ PATH Ċ ) Ċ