Skip to content

Instantly share code, notes, and snippets.

View rocioDEV's full-sized avatar
🚀
Like a sputnik

Rocío rocioDEV

🚀
Like a sputnik
View GitHub Profile
@rafinskipg
rafinskipg / client.ts
Created September 28, 2021 14:05
signing-security with web3
const web3 = new Web3(context.library.provider);
const thingToSave = {
message: 'Hello world',
owner: address,
};
const hashedData = web3.eth.accounts.hashMessage(
JSON.stringify(thingToSave)
);
@plentz
plentz / nginx.conf
Last active June 26, 2024 04:29
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048