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

And non relic bls stubs #801

Merged
merged 3 commits into from Jun 8, 2021
Merged

Conversation

janezpodhostnik
Copy link
Contributor

The emulator is built without a relic tag. Without the changes here the build of flow-go/crypto fails without a relic tag. This makes the build pass but the emulator wont be able to use BLS which will be addressed later.

@tarakby originally I wanted to change the CI to include a lint step without a relic tag, but linting the crypto folder produces lint warnings. I did not feel those needed to be addressed, as this is probably a temporary solution. So to confirm that this work I prepared this draft PR in the emulator, that passes CI.

Copy link
Contributor

@tarakby tarakby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice solution 🏄

// Temporary stubs for BLS implementation. This is used only when the crypto library is built without the relic tag.
// This is currently just the emulator.

const blsNotSupported = "BLSKMAC not supported when flow-go is build without relic"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const blsNotSupported = "BLSKMAC not supported when flow-go is build without relic"
const blsNotSupported = "BLS and KMAC not supported when flow-go is built without relic"

fvm/crypto/blskmac.go Outdated Show resolved Hide resolved
@tarakby tarakby merged commit f5e3475 into feature/cadence-update Jun 8, 2021
@tarakby tarakby deleted the janez/bls-no-relic branch June 8, 2021 22:41
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.

None yet

2 participants