In this example, we want to resolve a curve value by looking into a dictionary. While this resolution is already implemented, this is a particular case where the subscription indexcurve is a parameter of the enclosing function.
Here, curve is correctly resolved (using outer scope resolution) to b'ecdsa-sha2-nistp256', but this resolved value is not later used to look into the dictionary.
Therefore, the captured value is currently b'ecdsa-sha2-nistp256' instead of SECP256R1.
Example inspired by this code.
In this example, we want to resolve a curve value by looking into a dictionary. While this resolution is already implemented, this is a particular case where the subscription index
curve
is a parameter of the enclosing function. Here,curve
is correctly resolved (using outer scope resolution) tob'ecdsa-sha2-nistp256'
, but this resolved value is not later used to look into the dictionary. Therefore, the captured value is currentlyb'ecdsa-sha2-nistp256'
instead ofSECP256R1
.