I ran into errors while running the ./generate-dpop-proof script on Mac:
I modified the script here:
|
@key = self.read_jwk(file) |
to:
@key = send(:read_jwk, file) # Use
send to call the private method
Reasoning:
Using send: The send method allows calling both public and private methods dynamically. By using send(:read_jwk, file), we explicitly call the private method read_jwk within the on method block.
Private Methods: The read_jwk method remains private, maintaining encapsulation, but it is called in a controlled manner.
Additional Notes
This solved the issue.
I ran into errors while running the ./generate-dpop-proof script on Mac:
I modified the script here:
oid4vci-demo/generate-dpop-proof
Line 131 in a7ebb83
to:
@key = send(:read_jwk, file) # Use
sendto call the private methodReasoning:
Using send: The send method allows calling both public and private methods dynamically. By using send(:read_jwk, file), we explicitly call the private method read_jwk within the on method block.
Private Methods: The read_jwk method remains private, maintaining encapsulation, but it is called in a controlled manner.
Additional Notes
This solved the issue.