Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gettoken for concurrent calls #505

Merged
merged 16 commits into from
Jul 31, 2020
Merged

Conversation

anandrgitnirman
Copy link
Contributor

#309
Get a token to make concurrent calls

anandrgitnirman added 5 commits July 16, 2020 12:01
Updated the proto to use Signature of MPE Signature + Block number for security reasons
…shing with the new grpc token service we have )
@anandrgitnirman anandrgitnirman changed the title Gettoken - Gettoken for concurrent calls Jul 16, 2020
@coveralls
Copy link

coveralls commented Jul 16, 2020

Coverage Status

Coverage increased (+3.4%) to 67.637% when pulling 2f2bdec on anandrgitnirman:gettoken into 5b58178 on singnet:master.

@vsbogd
Copy link
Member

vsbogd commented Jul 17, 2020

I skimmed the PR looks good to me, but better to be reviewed accurately by someone else.

anandrgitnirman added 5 commits July 20, 2020 18:57
For example so far we have pay per use and say the Signed amount was 100 Cogs ,
Now the user wants to make concurrent calls worth 10 Cogs ( assuming 1Cog = 1call) , the user will need to Sign 110 Cogs . thus the planned amount is 10 Cogs
Now if there is a Pay per use Again , the user will need to Sign in for 111 Cogs ( 110 + 1)
… Amount Signature and added test cases accordingly
escrow/memory_storage.go Outdated Show resolved Hide resolved
escrow/prepaid_service.go Show resolved Hide resolved
snetd/cmd/components.go Show resolved Hide resolved
escrow/token_service.go Show resolved Hide resolved
Co-authored-by: Vitaly Bogdanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants