Skip to content

Support compilinig 国密 contract with library  #110

@leayingly

Description

@leayingly

Currently compilation will throw "libraries linking is not supported under SM_CRYPTO mode".

The idea of solc linker is to replace __$xxxxx$__ placeholder(hash of library name) in compiled contract with deployed address of that library.

For ECDSA it's using solidity Keccak256 to hash library name.
For GM is it sm3?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions