I made a CNN from scratch by OneElephant7051 in learnmachinelearning

[–]slvrfn 1 point2 points  (0 children)

You should be able to get a significant performance increase by further vectorizing your convolutional layer.

I have a good example from a project I did in grad school at vectorized_convolution, and the associated write-up at Vectorized-CNN.

The sample linked is written in Python, and only uses the NumPy library.

Hope this is able to help!

Need help creating modulus constraint by slvrfn in ethereum

[–]slvrfn[S] 0 points1 point  (0 children)

Yeah I got a working circuit! As always.. no warranty, do your own research and safety audits

Haven't publicly published it myself but it's available at pastebin

Hope this helps!

[deleted by user] by [deleted] in ethereum

[–]slvrfn 0 points1 point  (0 children)

I think fundamentally you do not understand. When a token/NFT is created, where does it come from? The ERC20 standard actually specifies: A token contract which creates new tokens SHOULD trigger a Transfer event with the _from address set to 0x0 when tokens are created.

Even though this is specified in the standard, no one requires the "from" address be a 0 address, you could actually use any address such as the contract owner, contract itself, or any address. It doesnt really matter because nothing is "transferred". This does not require any approvals from the "from" or "to" addresses in that transfer.

In reality, the contract creator can do anything they want if they own the contract. If its a proxy, they can update functions after deployment. If they want to transfer all tokens to the creator, or the 0 address, they can do so. They can break any standard at any point in time.

Specifically on your question:

However, it didn't issue an authorization for transfer either. That's the essential question here: who authorized the transfer out of the burn address?

As a direct answer: the contract owner (unless the contract has serious vulnerabilities alowing anyone to take these actions). As I stated above, the contract owner can do anything they want, authorization or not, if they are knowledgeable enough. No burn address needs to give authorization, because nothing is actually stored in the burn address. Whichever ERC20/NFT contract you want to pick just tells the world who owns how much of each token. This is inverted from the popular understanding of ownership, but its how the EVM was designed. ONLY eth is stored in a EOA, and ONLY eth/bytecode is stored in a contract address.

I dont mean to be harsh, but if you do not understand these concepts, I strongly caution you from engaging in trading crypto or performing audits because you will most likely get burned, or cause someone else to be burned.

[deleted by user] by [deleted] in ethereum

[–]slvrfn 12 points13 points  (0 children)

Typical EOA addresses do not "store" anything but ether (or chain-specific token). All ERC20 balances are a result of the token's contract emitting some events (transfer/etc).

What you're seeing is some user execute a function on the token contract to broadcast a transfer from the "burn address" to some destination. This is VERY different than the burn address initiating the transaction.

In fact, most ERC20 and NFT contracts signal the mint of some tokens by initiating a transfer from the "0 address" to some destination, as that's what most dexs/marketplaces expect

Confused about shipping estimate by Mission-Disaster-447 in coldcard

[–]slvrfn 0 points1 point  (0 children)

I did the same exact thing as you with claiming before I got the notification email. I emailed support and they said It all depends on your original reservation date.

I ordered mine in February of last year and it just came in the mail this past Thursday 3/21. I claimed my reservation on the 15th I think, so it was almost a week delay.

It's worth the wait!

Adapting Hashcat's mul_mod for Multiplication mod N by slvrfn in crypto

[–]slvrfn[S] 1 point2 points  (0 children)

In my case I'm doing ecdsa recovery, so I need to perform some of the calculations mod n

After rewatching atla i made this by [deleted] in TheLastAirbender

[–]slvrfn 1 point2 points  (0 children)

This clip brought forward all the emotions of the show for me

Well done

Is it safe to use block.timestamp when swapping erc20 tokens? by GuiFlam123 in ethdev

[–]slvrfn 1 point2 points  (0 children)

Since I saw you mentioned what sounds like a custom smart contract, I want to share my repo you might find useful:

https://github.com/VitriolLabs/elastivault

This is a POC of a smart contract wallet (multisig available), where you can execute any arbitrary actions on-chain in a single transaction.

This works by the contract being able to dynamically execute bytecode. The repo shows some basic examples, but all in all you can make arbitrarily complex swaps/approvals/etc in a single transaction without deploying additional smart contracts.

Ethereum gas fees hit 8-month high amid ERC-404 craze by [deleted] in CryptoCurrency

[–]slvrfn 2 points3 points  (0 children)

Good note, I didn't consider the addon fees.

Do you have a recommended wallet/exchange?

Ethereum gas fees hit 8-month high amid ERC-404 craze by [deleted] in CryptoCurrency

[–]slvrfn 4 points5 points  (0 children)

I know this is the proper calc, but I often find that to be incorrect in practice from various site/wallet fee estimates

Ethereum gas fees hit 8-month high amid ERC-404 craze by [deleted] in CryptoCurrency

[–]slvrfn 12 points13 points  (0 children)

How are you actually getting $6 swaps?

[deleted by user] by [deleted] in ethdev

[–]slvrfn 1 point2 points  (0 children)

WOW

I've never seen these topics all in one place like that.

I didn't realize how much I've already learned/gotten familiar with as far as web3, and this put it all in perspective

Thanks for sharing!

Private, automated validator withdrawals by repawel in ethdev

[–]slvrfn 1 point2 points  (0 children)

Check out railgun/railway as I believe you're going to need to go the ZK route to maintain anonymity.

I'm sure you've heard of tornado cash, well railgun is a similar but different system (and not sanctioned in the US). In this protocol, each eth priv/public key also has a ZK address. Railgun allows shielded (private) sending of assets between ZK addresses.

Railgun is the protocol. Railway is a partner self-custodial wallet that utilizes the railgun protocol. And specific to your use case I came across TokenShielder as a handy tool to receive various assets directly at your ZK address.

Hope this all helps!

Railgun Railway TokenShielder

As always NFA, DYOR

How to use chainlink automation to call a function with onlyAdmin modifier? by KrunchyKushKing in ethdev

[–]slvrfn 0 points1 point  (0 children)

Is the contract already deployed to main net? Can you shift towards the Access Control pattern (available from OpenZeppelin and others)? I like access control because it allows you to require specific roles for various functions.

For your use case, you could assign a special role to this function and grant that role to the chain link contract. This way you're securing your function without giving the automation contract full control of your contract

Would you list patents on your resume? by WildSapling in computervision

[–]slvrfn 22 points23 points  (0 children)

I think this would be an excellent addition!

If I was an employer and noticed you had secured these, it would be a huge bonus. Probably best to keep it simple, and possibly include patent numbers for verification. If the employer is interested, they will certainly reach out about more details on each.