What is the purpose of shim.GetBinding()

Mr.Phuwanai Thummavet

Hi everyone,

I want to know what is the purpose of the function stub.GetBinding() and when to use it?
Its description in interface.go is not provided enough details for me to understand.

// GetBinding returns the transaction binding, which is used to enforce a
// link between application data (like those stored in the transient field
// above) to the proposal itself. This is useful to avoid possible replay
// attacks.
GetBinding() ([]byte, error)

Does anyone have an example code about it?
Thank you very much.

Best Regards,
Phuwanai Thummavet
Blockchain Architect and Full-Stack Developer

Join fabric@lists.hyperledger.org to automatically receive all group messages.