bytesbay / web3-token

Web3 Token is a new way to authenticate users in a hybrid dApps using signed messages. Implementation of EIP-4361.
381 stars 51 forks source link

About JAVA Backend support #31

Open bobliao666 opened 2 years ago

bobliao666 commented 2 years ago

Hello to @bytesbay _We are using web3-token all the way since our team trying to do authenticate user on block chain in our project ,witch is a grate job!!,we'v tried nodejs backend excmaple code await Web3Token.verify(token); witch is useful, very convenient to do verify in nodejs backend environment, but in these days we wish to do something like "Web3Token.verify(token)" in JAVA .

it's becuse when we'r using await Web3Token.sign(msg => web3.eth.personal.sign(msg, address), '1d'); token from here could verify with await Web3Token.verify(token); witch is nodejs backend, but doesn't work with WEB3J in JAVA,we tried using token from web3.eth.personal.sign(msg, address) here & send this token to JAVA backend with WEB3J, it's works fine in many wallet excepet "imtoken" wallet, but if i'm using await Web3Token.sign(msg => web3.eth.personal.sign(msg, address), '1d'); to await Web3Token.verify(token); in nodejs backend with "imtoken" wallet, it will going very well, Considering my colleagues are using Java to buildding backend verify serve,is there any similar way to do verify in JAVA like await Web3Token.verify(token); in nodejs environment?

if you got any idea please tell us below ,it's fire bunning_

===================================== ok it's solved it's a funny issue, ImToken make all charactors in wallet address string are UPPERCASE... so ... you know... this is how it happend